Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandInMetadata ¶
ExpandInMetadata substitutes wildcard characters in map keys for metadata.labels and metadata.annotations that are present in a validation pattern. Values are not substituted here, as they are evaluated separately while processing the validation pattern. Anchors on the tags (e.g. "=(kubernetes.io/*)" will be preserved when the values are expanded.
func ReplaceInSelector ¶
func ReplaceInSelector(labelSelector *metav1.LabelSelector, resourceLabels map[string]string) *metav1.LabelSelector
ReplaceInSelector replaces label selector keys and values containing wildcard characters with matching keys and values from the resource labels.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.