Documentation ¶
Index ¶
- Variables
- func AddFinalizer(obj metav1.ObjectMeta, finalizer string) metav1.ObjectMeta
- func ComputeHash(obj interface{}) string
- func ContainsFinalizer(obj metav1.ObjectMeta, finalizer string) bool
- func IsStatusComplete(status metav1alpha1.ConditionStatus) bool
- func IsStatusNotActive(status metav1alpha1.ConditionStatus) bool
- func RemoveFinalizer(obj metav1.ObjectMeta, finalizer string) metav1.ObjectMeta
- func SliceContains(items []string, name string) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ControllerOwnerKey defines the field that will reference ownership ControllerOwnerKey = ".metadata.controller" // StackTemplateVersionLabel defines the stack version for version management StackTemplateVersionLabel = "stack.cloudformation.awsctrl.io/template-version" )
Functions ¶
func AddFinalizer ¶
func AddFinalizer(obj metav1.ObjectMeta, finalizer string) metav1.ObjectMeta
AddFinalizer will add the finalizer from the list
func ComputeHash ¶
func ComputeHash(obj interface{}) string
ComputeHash will take in an object and generate a repetable hash for versioning
func ContainsFinalizer ¶
func ContainsFinalizer(obj metav1.ObjectMeta, finalizer string) bool
ContainsFinalizer will check if the finalizer exists
func IsStatusComplete ¶
func IsStatusComplete(status metav1alpha1.ConditionStatus) bool
IsStatusComplete will return true completed status
func IsStatusNotActive ¶
func IsStatusNotActive(status metav1alpha1.ConditionStatus) bool
IsStatusNotActive will return true if deleted or rolledback
func RemoveFinalizer ¶
func RemoveFinalizer(obj metav1.ObjectMeta, finalizer string) metav1.ObjectMeta
RemoveFinalizer will remove the finalizer from the list
func SliceContains ¶
SliceContains will check a list for something
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.