Documentation
¶
Overview ¶
Package annotations implements utilites for working with annotatoins
Index ¶
- func AddOrUpdateAnnotation(node *v1.Node, annotations map[string]string) (*v1.Node, bool, error)
- func CreateMachinesTriggeredForDeletionAnnotValue(machineNames []string) string
- func DeleteAnnotation(nodeAnnotations map[string]string, annotations map[string]string) (map[string]string, bool)
- func GetMachineNamesTriggeredForDeletion(mcd *v1alpha1.MachineDeployment) []string
- func RemoveAnnotation(node *v1.Node, annotations map[string]string) (*v1.Node, bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddOrUpdateAnnotation ¶
AddOrUpdateAnnotation tries to add an annotation. Returns a new copy of updated Node and true if something was updated false otherwise.
func CreateMachinesTriggeredForDeletionAnnotValue ¶ added in v0.56.0
CreateMachinesTriggeredForDeletionAnnotValue constructs the annotation value for machineutils.TriggerDeletionByMCM from the given machine names.
func DeleteAnnotation ¶
func DeleteAnnotation(nodeAnnotations map[string]string, annotations map[string]string) (map[string]string, bool)
DeleteAnnotation removes the annotation with annotationKey.
func GetMachineNamesTriggeredForDeletion ¶ added in v0.56.0
func GetMachineNamesTriggeredForDeletion(mcd *v1alpha1.MachineDeployment) []string
GetMachineNamesTriggeredForDeletion returns the set of machine names contained within the machineutils.TriggerDeletionByMCM annotation on the given MachineDeployment
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.