consts

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2022 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

View Source
const (
	MachineGroupKey  = "imperator.tenzen-y.io/machine-group"
	MachineStatusKey = "imperator.tenzen-y.io/node-pool"
	MachineTypeKey   = "imperator.tenzen-y.io/machine-type"
	PodRoleKey       = "imperator.tenzen-y.io/pod-role"

	StatefulSetImage = "alpine:3.15.0"

	NvidiaGPUFamilyKey  = "nvidia.com/gpu.family"
	NvidiaGPUProductKey = "nvidia.com/gpu.product"
	NvidiaGPUMachineKey = "nvidia.com/gpu.machine"

	KindMachineNodePool = "MachineNodePool"
	KindMachine         = "Machine"
	PodRoleReservation  = "reservation"
	PodRoleGuest        = "guest"

	MachineNodePoolFinalizer = "imperator-machinenodepool-finalizer"
	NodeNotReadyTaint        = "node.kubernetes.io/not-ready"
	SuiteTestTimeOut         = time.Second * 5

	ImperatorResourceInjectionKey     = "imperator.tenzen.io/inject-resource"
	ImperatorResourceInjectionEnabled = "enabled"

	ImperatorResourceInjectContainerNameKey = "imperator.tenzen-y.io/injecting-container"
	PodResourceInjectorPath                 = "/mutate-core-v1-pod"
)

Variables

View Source
var (
	CannotUseNodeTaints = []string{
		"node.kubernetes.io/not-ready",
		"node.kubernetes.io/unschedulable",
		"node.kubernetes.io/network-unavailable",
		"node.kubernetes.io/unreachable",
	}
	ImperatorCoreNamespace = getEnvVarOrDefault("IMPERATOR_CORE_NAMESPACE", "imperator-system")
	CmpSliceOpts           = []cmp.Option{
		cmpopts.SortSlices(func(i, j int) bool {
			return i < j
		}),
	}
	CmpStatefulSetOpts = []cmp.Option{
		cmpopts.IgnoreFields(appsv1.StatefulSetSpec{},
			"Selector", "Template"),
	}
)

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