Documentation ¶
Index ¶
- Constants
- func ExpectedOriginalSelector(selector *metav1.LabelSelector) labels.Selector
- func MakeConfigMap(args ConfigMapArgs) *corev1.ConfigMap
- func MakeCopyConfigMapLabel(originalNamespace, originalName string) string
- func MakeCopyConfigMapName(configMapPropagationName, configMapName string) string
- type ConfigMapArgs
Constants ¶
View Source
const ( PropagationLabelKey = "knative.dev/config-propagation" PropagationLabelValueOriginal = "original" PropagationLabelValueCopy = "copy" CopyLabelKey = "knative.dev/config-original" )
Variables ¶
This section is empty.
Functions ¶
func ExpectedOriginalSelector ¶
func ExpectedOriginalSelector(selector *metav1.LabelSelector) labels.Selector
ExpectedOriginalSelector with return a selector which matches the input set with an additional label "knative.dev/config-propagation: original" This is the expected selector to select original configmaps
func MakeConfigMap ¶
func MakeConfigMap(args ConfigMapArgs) *corev1.ConfigMap
func MakeCopyConfigMapLabel ¶
MakeCopyCOnfigMapLabel uses '-' to separate namespace and configmap name instead of '/', for label values only accept '-', '.', '_'.
func MakeCopyConfigMapName ¶
Types ¶
type ConfigMapArgs ¶
type ConfigMapArgs struct { Original *corev1.ConfigMap ConfigMapPropagation *configsv1alpha1.ConfigMapPropagation }
Click to show internal directories.
Click to hide internal directories.