Documentation ¶
Overview ¶
Package labels contains helpers for working with labels.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ControllerClassLabelSelector ¶
func ControllerClassLabelSelector(class string) metav1.LabelSelector
ControllerClassLabelSelector creates a metav1.LabelSelector which selects objects that has the "styra-controller/class" label with the value `class`.
func ControllerClassLabelSelectorAsSelector ¶
ControllerClassLabelSelectorAsSelector creates a labels.Selecter which selects objects that has the "styra-controller/class" label with the value `class`.
func ControllerClassMatches ¶
ControllerClassMatches checks if the object has the `styra-controller/class` label with the value `class`.
func HasManagedBy ¶
HasManagedBy checks if the object has the label `app.kubernetes.io/managed-by` set to styra-controller
func SetManagedBy ¶
SetManagedBy sets the `app.kubernetes.io/managed-by` label to styra-controller.
Types ¶
This section is empty.