wildcards

package
v1.13.2-rc.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandInMetadata

func ExpandInMetadata(patternMap, resourceMap map[string]interface{}) map[string]interface{}

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.

Jump to

Keyboard shortcuts

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