Documentation ¶
Overview ¶
Package labels contains useful functions to process onex labels.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasMatchingLabels ¶
func HasMatchingLabels(matchSelector metav1.LabelSelector, matchLabels map[string]string) bool
HasMatchingLabels verifies that the Label Selector matches the given Labels.
func HasWatchLabel ¶
HasWatchLabel returns true if the object has a label with the WatchLabel key matching the given value.
func MustEqualValue ¶
MustEqualValue returns true if the actualLabelValue equals either the inputLabelValue or the hashed value of the inputLabelValue.
func MustFormatValue ¶
MustFormatValue returns the passed inputLabelValue if it meets the standards for a Kubernetes label value. If the name is not a valid label value this function returns a hash which meets the requirements.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.