Documentation
¶
Index ¶
Constants ¶
View Source
const (
SkipTranslationAnnotation = "vcluster.loft.sh/skip-translate"
SyncResourceAnnotation = "vcluster.loft.sh/force-sync"
PausedAnnotation = "loft.sh/paused"
PausedReplicasAnnotation = "loft.sh/paused-replicas"
PausedDateAnnotation = "loft.sh/paused-date"
// NodeSuffix is the dns suffix for our nodes
NodeSuffix = "nodes.vcluster.com"
// KubeletPort is the port we pretend the kubelet is running under
KubeletPort = int32(10250)
)
View Source
const (
K3SDistro = "k3s"
K8SDistro = "k8s"
K0SDistro = "k0s"
EKSDistro = "eks"
Unknown = "unknown"
)
View Source
const (
IndexByPhysicalName = "IndexByPhysicalName"
IndexByVirtualName = "IndexByVirtualName"
IndexByAssigned = "IndexByAssigned"
IndexByStorageClass = "IndexByStorageClass"
IndexByIngressSecret = "IndexByIngressSecret"
IndexByPodSecret = "IndexByPodSecret"
IndexByConfigMap = "IndexByConfigMap"
// IndexByHostName is used to map rewritten hostnames(advertised as node addresses) to nodenames
IndexByHostName = "IndexByHostName"
IndexByClusterIP = "IndexByClusterIP"
// IndexRunningNonVClusterPodsByNode is only used when the vcluster scheduler is enabled.
// It maps non-vcluster pods on the node to the node name, so that the node syncer may
// calculate the allocatable resources on the node.
IndexRunningNonVClusterPodsByNode = "IndexRunningNonVClusterPodsByNode"
)
View Source
const DefaultCacheSyncTimeout = time.Minute * 15
View Source
const (
FieldManager = "vcluster"
)
Variables ¶
View Source
var CoreDNSVersionMap = map[string]string{
"1.27": "coredns/coredns:1.10.1",
"1.25": "coredns/coredns:1.9.3",
"1.24": "coredns/coredns:1.8.7",
"1.23": "coredns/coredns:1.8.6",
"1.22": "coredns/coredns:1.8.4",
"1.21": "coredns/coredns:1.8.3",
"1.20": "coredns/coredns:1.8.0",
"1.19": "coredns/coredns:1.6.9",
"1.18": "coredns/coredns:1.6.9",
"1.17": "coredns/coredns:1.6.9",
"1.16": "coredns/coredns:1.6.3",
}
View Source
var DefaultEnabledControllers = sets.New(
"services",
"configmaps",
"secrets",
"endpoints",
"pods",
"events",
"persistentvolumeclaims",
"fake-nodes",
"fake-persistentvolumes",
)
View Source
var ExistingControllers = sets.New(
"services",
"configmaps",
"secrets",
"endpoints",
"pods",
"events",
"fake-nodes",
"fake-persistentvolumes",
"persistentvolumeclaims",
"ingresses",
"ingressclasses",
"nodes",
"persistentvolumes",
"storageclasses",
"hoststorageclasses",
"priorityclasses",
"networkpolicies",
"volumesnapshots",
"poddisruptionbudgets",
"serviceaccounts",
"csinodes",
"csidrivers",
"csistoragecapacities",
"namespaces",
)
View Source
var SchedulerRequiredControllers = sets.New(
"csinodes",
"csidrivers",
"csistoragecapacities",
)
Functions ¶
func GetVClusterDistro ¶ added in v0.18.0
func GetVClusterDistro() string
func GetVclusterUserAgent ¶ added in v0.15.1
func GetVclusterUserAgent() string
returns vcluster user agent with a constant name part used by the API server for FieldManager
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.