delegatepod

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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" https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#syntax-and-character-set 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)

Types

This section is empty.

Jump to

Keyboard shortcuts

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