constants

package
v0.21.0-alpha.11 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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"

	HostClusterPersistentVolumeAnnotation = "vcluster.loft.sh/host-pv"

	HostClusterVSCAnnotation = "vcluster.loft.sh/host-volumesnapshotcontent"

	// 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 (
	K8sKineEndpoint = "unix:///data/kine.sock"
	K3sKineEndpoint = "unix:///data/server/kine.sock"
	K0sKineEndpoint = "unix:///run/k0s/kine/kine.sock:2379"

	// DefaultVClusterConfigLocation is the default location of the vCluster config within the container
	DefaultVClusterConfigLocation = "/var/vcluster/config.yaml"
)
View Source
const (
	IndexByAssigned      = "IndexByAssigned"
	IndexByIngressSecret = "IndexByIngressSecret"
	IndexByPodSecret     = "IndexByPodSecret"
	// 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 (
	VClusterFolder  = ".vcluster"
	ConfigFileName  = "config.json"
	ManagerFileName = "manager.json"
)
View Source
const DefaultCacheSyncTimeout = time.Minute * 15
View Source
const (
	FieldManager = "vcluster"
)
View Source
const LoftChartRepo = "https://charts.loft.sh"

Variables

View Source
var CoreDNSVersionMap = map[string]string{
	"1.30": "coredns/coredns:1.11.3",
	"1.29": "coredns/coredns:1.11.1",
	"1.28": "coredns/coredns:1.10.1",
	"1.27": "coredns/coredns:1.10.1",
	"1.26": "coredns/coredns:1.9.3",
	"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",
}

Functions

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.

Jump to

Keyboard shortcuts

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