common

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ProxySchedulerName     = "admiralty-proxy"
	CandidateSchedulerName = "admiralty-candidate"

	LabelAndTaintKeyVirtualKubeletProvider = "virtual-kubelet.io/provider"
	VirtualKubeletProviderName             = "admiralty"

	KeyPrefix = "multicluster.admiralty.io/"

	AnnotationKeyElect = KeyPrefix + "elect"

	// AnnotationKeyNoReservation tells the proxy scheduler to work with a custom scheduler in the target cluster,
	// instead of the candidate scheduler, waiting for candidate pods to be scheduled, instead of reserved,
	// to pass the proxy plugin filter test. Pods deleted in the post-bind plugin (those that didn't pass the score test)
	// may be scheduled already, not just pending. That is an acceptable compromise to work with a custom scheduler.
	// TODO: an alternative option would be to schedule based on virtual node info only (like tensile-kube).
	AnnotationKeyNoReservation = KeyPrefix + "no-reservation"

	AnnotationKeyProxyPodSchedulingConstraints = KeyPrefix + "proxy-pod-scheduling-constraints"

	AnnotationKeyUseConstraintsFromSpecForProxyPodScheduling = KeyPrefix + "use-constraints-from-spec-for-proxy-pod-scheduling"

	KeyPrefixSourcePod = KeyPrefix + "sourcepod-"

	AnnotationKeySourcePodManifest = KeyPrefixSourcePod + "manifest"

	AnnotationKeyIsReserved = KeyPrefix + "is-reserved"
	AnnotationKeyIsAllowed  = KeyPrefix + "is-allowed"

	AnnotationKeyPodMissingSince = KeyPrefix + "pod-missing-since"

	AnnotationKeyGlobal = KeyPrefix + "global"

	AnnotationKeyIsDelegate = KeyPrefix + "is-delegate"

	LabelKeyHasFinalizer = KeyPrefix + "has-finalizer"

	LabelKeyParentClusterName = KeyPrefix + "parent-cluster-name"
	// used to get pod chaperon (whose name is generated) given proxy pod ("list one" hack), without indexer
	LabelKeyParentUID            = KeyPrefix + "parent-uid"
	AnnotationKeyParentName      = KeyPrefix + "parent-name"
	AnnotationKeyParentNamespace = KeyPrefix + "parent-namespace"

	AnnotationKeyCiliumGlobalService = "io.cilium/global-service"

	AnnotationKeyOriginalSelector = KeyPrefix + "original-selector"

	AnnotationKeyRestartedAt = KeyPrefix + "restartedAt"

	LabelKeyTargetNamespace   = KeyPrefix + "target-namespace"
	LabelKeyTargetName        = KeyPrefix + "target-name"
	LabelKeyClusterTargetName = KeyPrefix + "cluster-target-name"
)

Functions

func SplitLabelsOrAnnotations added in v0.8.0

func SplitLabelsOrAnnotations(m map[string]string) (map[string]string, map[string]string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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