Documentation
¶
Index ¶
Constants ¶
View Source
const ( // LabelControlled records the object is controlled by virtualcluster controllers. LabelControlled = "tenancy.x-k8s.io/controlled" // 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" // #nosec G101 -- This is a label key // LabelAdminKubeConfig is the kubeconfig in base64 format for tenant control plane. LabelAdminKubeConfig = "tenancy.x-k8s.io/admin-kubeconfig" // LabelSecretAdminKubeConfig is the kubeconfig secret name for the tenant control plane. LabelSecretAdminKubeConfig = "tenancy.x-k8s.io/secret.admin-kubeconfig" // #nosec G101 -- This is a label key // 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" // LabelVCReadyForUpgrade is set to "true" when the cluster is ready for the upgrade being applied // (use featuregate.VirtualClusterApplyUpdate to enable it in the provisioner) LabelVCReadyForUpgrade = "tenancy.x-k8s.io/ready-for-upgrade" // LabelClusterVersionApplied should be set equal to the ClusterVersion.metadata.resourceVersion value // This label is used in featuregate.VirtualClusterApplyUpdate to compare if the update must be applied. LabelClusterVersionApplied = "tenancy.x-k8s.io/cluster-version-applied" // LabelExternalApiserverDomain is the domain name for apiserver url from outside the cluster LabelExternalApiserverDomain = "tenancy.x-k8s.io/external-apiserver-domain" // LabelSecretUID is the service account token secret UID in tenant namespace. LabelSecretUID = "tenancy.x-k8s.io/secret.UID" // #nosec G101 -- This is a label key // LabelTenantIgnoreSync is used by resources that do not need to be synced. LabelTenantIgnoreSync = "tenancy.x-k8s.io/ignore-sync" // UwsControllerWorkerHigh is the quantity of the worker routine for a resource that generates high number of uws requests. UwsControllerWorkerHigh = 10 // UwsControllerWorkerLow is the quantity of the worker routine for a resource that generates low number of uws requests. UwsControllerWorkerLow = 3 // DwsControllerWorkerHigh is the quantity of the worker routine for a resource that generates high number of dws requests. DwsControllerWorkerHigh = 10 // DwsControllerWorkerLow 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" // TenantDisableDNSPolicyMutation is a label that allows pods to stop the syncer from mutating the dnsPolicy TenantDisableDNSPolicyMutation = "tenancy.x-k8s.io/disable.dnsPolicyMutation" // PublicObjectKey is a label key which marks the super control plane object that should be populated to every tenant control plane. 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 control plane. 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 control plane. LabelSuperClusterIP = "transparency.tenancy.x-k8s.io/clusterIP" KubeconfigAdminSecretName = "admin-kubeconfig" // #nosec G101 -- This is a secret name // RootCACertConfigMapName is name of the configmap which stores certificates // to access api-server RootCACertConfigMapName = "kube-root-ca.crt" // TenantRootCACertConfigMapName is name of the configmap which stores certificates // to access api-server TenantRootCACertConfigMapName = "tenant-kube-root-ca.crt" )
View Source
const ( // 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.
Click to show internal directories.
Click to hide internal directories.