resources

package
v0.13.4 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

func MakeCopyConfigMapLabel(originalNamespace, originalName string) string

MakeCopyCOnfigMapLabel uses '-' to separate namespace and configmap name instead of '/', for label values only accept '-', '.', '_'.

func MakeCopyConfigMapName

func MakeCopyConfigMapName(configMapPropagationName, configMapName string) string

Types

type ConfigMapArgs

type ConfigMapArgs struct {
	Original             *corev1.ConfigMap
	ConfigMapPropagation *configsv1alpha1.ConfigMapPropagation
}

Jump to

Keyboard shortcuts

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