constants

package
v0.16.0-beta.8 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: Apache-2.0 Imports: 4 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"

	// 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 (
	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"
)
View Source
const (
	ContainerManifestsFolder = "/manifests"
)
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",
}

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