pods

package
v0.3.1-beta.1 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2021 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OwnerSetKind                 = "vcluster.loft.sh/owner-set-kind"
	NamespaceAnnotation          = "vcluster.loft.sh/namespace"
	NameAnnotation               = "vcluster.loft.sh/name"
	LabelsAnnotation             = "vcluster.loft.sh/labels"
	UIDAnnotation                = "vcluster.loft.sh/uid"
	ServiceAccountNameAnnotation = "vcluster.loft.sh/service-account-name"

	DisableSubdomainRewriteAnnotation = "vcluster.loft.sh/disable-subdomain-rewrite"
	HostsRewrittenAnnotation          = "vcluster.loft.sh/hosts-rewritten"
	HostsVolumeName                   = "vcluster-rewrite-hosts"
	HostsRewriteImage                 = "alpine:3.13.1"
	HostsRewriteContainerName         = "vcluster-rewrite-hosts"
)

Variables

View Source
var (
	False = false
)
View Source
var (
	FieldPathLabelRegEx = regexp.MustCompile("^metadata\\.labels\\['(.+)'\\]$")
)

Functions

func ConfigNamesFromContainer

func ConfigNamesFromContainer(namespace string, container *corev1.Container) []string

func ConfigNamesFromEphemeralContainer

func ConfigNamesFromEphemeralContainer(namespace string, container *corev1.EphemeralContainer) []string

func ConfigNamesFromPod

func ConfigNamesFromPod(pod *corev1.Pod) []string

func Register

func Register(ctx *context2.ControllerContext) error

func RegisterIndices added in v0.3.0

func RegisterIndices(ctx *context2.ControllerContext) error

func SecretNamesFromContainer

func SecretNamesFromContainer(namespace string, container *corev1.Container) []string

func SecretNamesFromEphemeralContainer

func SecretNamesFromEphemeralContainer(namespace string, container *corev1.EphemeralContainer) []string

func SecretNamesFromPod

func SecretNamesFromPod(vClient client.Client, pod *corev1.Pod) []string

Types

type ImageTranslator

type ImageTranslator interface {
	Translate(image string) string
}

func NewImageTranslator

func NewImageTranslator(translateImages []string) (ImageTranslator, error)

Jump to

Keyboard shortcuts

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