Version: v0.15.0 Latest Latest

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

Go to latest
Published: Mar 2, 2022 License: Apache-2.0 Imports: 7 Imported by: 0




This section is empty.


This section is empty.


func ChangeLabels added in v0.12.0

func ChangeLabels(labels map[string]string) (map[string]string, bool)

ChangeLabels changes a delegate pod's labels so as not to confuse potential controller of proxy pod, e.g., replica set. If the original label key has a domain prefix, replace it with ours; if it doesn't, add our domain prefix. Also used to optionally reroute service selector. Length is not an issue: "Valid label keys have two segments: an optional prefix and name, separated by a slash (/). The name segment is required and must be 63 characters or less" TODO: resolve conflict two keys have same name but different prefixes

func IsDelegate added in v0.12.0

func IsDelegate(pod *corev1.Pod) bool

func MakeDelegatePod

func MakeDelegatePod(proxyPod *corev1.Pod) (*v1alpha1.PodChaperon, error)


This section is empty.

Source Files

Jump to

Keyboard shortcuts

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