constants

package
v0.0.0-...-44dad58 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// LabelCluster records which cluster this resource belongs to.
	LabelCluster = "tenancy.x-k8s.io/cluster"
	// LabelUID is the uid in the tenant namespace.
	LabelUID = "tenancy.x-k8s.io/uid"
	// LabelNamespace records which cluster namespace this resource belongs to.
	LabelNamespace = "tenancy.x-k8s.io/namespace"
	// LabelOwnerReferences is the ownerReferences of the object in tenant context.
	LabelOwnerReferences = "tenancy.x-k8s.io/ownerReferences"
	// LabelClusterIP is the cluster ip of the corresponding service in tenant namespace.
	LabelClusterIP = "tenancy.x-k8s.io/clusterIP"
	// LabelSecretName is the service account token secret name in tenant namespace.
	LabelSecretName = "tenancy.x-k8s.io/secret.name"
	// LabelAdminKubeConfig is the kubeconfig in base64 format for tenant master.
	LabelAdminKubeConfig = "tenancy.x-k8s.io/admin-kubeconfig"
	// LabelVCName is the name of the VC CR that owns the object.
	LabelVCName = "tenancy.x-k8s.io/vcname"
	// LabelVCNamespace is the namespace of the VC CR that owns the object.
	LabelVCNamespace = "tenancy.x-k8s.io/vcnamespace"
	// LabelVCUID is the uid of the VC CR that owns the object.
	LabelVCUID = "tenancy.x-k8s.io/vcuid"
	// LabelVCRootNS means the namespace is the rootns created by vc-manager.
	LabelVCRootNS = "tenancy.x-k8s.io/vcrootns"

	// LabelSecretUID is the service account token secret UID in tenant namespace.
	LabelSecretUID = "tenancy.x-k8s.io/secret.UID"

	// UwsControllerWorkersHigh is the quantity of the worker routine for a resource that generates high number of uws requests.
	UwsControllerWorkerHigh = 10
	// UwsControllerWorkersLow is the quantity of the worker routine for a resource that generates low number of uws requests.
	UwsControllerWorkerLow = 3

	// DwsControllerWorkersHigh is the quantity of the worker routine for a resource that generates high number of dws requests.
	DwsControllerWorkerHigh = 10
	// DwsControllerWorkersLow is the quantity of the worker routine for a resource that generates low number of dws requests.
	DwsControllerWorkerLow = 3

	TenantDNSServerNS          = "kube-system"
	TenantDNSServerServiceName = "kube-dns"

	// PublicObjectKey is a label key which marks the super master object that should be populated to every tenant master.
	PublicObjectKey = "tenancy.x-k8s.io/super.public"

	LabelVirtualNode = "tenancy.x-k8s.io/virtualnode"
	// LabelSuperClusterID is a label key added to the vNode object in tenant when SuperClusterPooling feature is enabled.
	LabelSuperClusterID = "tenancy.x-k8s.io/superclusterid"

	// DefaultvNodeGCGracePeriod is the grace period of time before deleting an orphan vNode in tenant master.
	DefaultvNodeGCGracePeriod = time.Second * 120

	DefaultOpaqueMetaPrefix      = "tenancy.x-k8s.io"
	DefaultTransparentMetaPrefix = "transparency.tenancy.x-k8s.io"

	// LabelSuperClusterIP is used to inform the tenant service about the cluster IP used in super master.
	LabelSuperClusterIP = "transparency.tenancy.x-k8s.io/clusterIP"

	KubeconfigAdminSecretName = "admin-kubeconfig"
)
View Source
const (
	// TODO(zhuangqh): make extend info plugable
	// LabelExtendDeploymentName is the parent deployment name of pod. only take effect on pods.
	LabelExtendDeploymentName = "tenancy.x-k8s.io/extend.deployment.name"
	// LabelExtendDeploymentUID is the parent deployment uid of pod. only take effect on pods.
	LabelExtendDeploymentUID = "tenancy.x-k8s.io/extend.deployment.uid"
)

Variables

View Source
var DefaultDeletionPolicy = metav1.DeletePropagationBackground

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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