utils

package
v0.0.0-...-beef95b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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

func SliceContains(items []string, name string) bool

SliceContains will check a list for something

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL