forked from openshift/machine-config-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.go
44 lines (31 loc) · 2.14 KB
/
constants.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package common
const (
// MCONamespace is the namespace that should be used for all API objects owned by the MCO by default
MCONamespace = "openshift-machine-config-operator"
// GeneratedByControllerVersionAnnotationKey is used to tag the machineconfigs generated by the controller with the version of the controller.
GeneratedByControllerVersionAnnotationKey = "machineconfiguration.openshift.io/generated-by-controller-version"
// ReleaseImageVersionAnnotationKey is used to tag the rendered machineconfigs & controller config with the release image version.
ReleaseImageVersionAnnotationKey = "machineconfiguration.openshift.io/release-image-version"
// OSImageURLOverriddenKey is used to tag a rendered machineconfig when OSImageURL has been overridden from default using machineconfig
OSImageURLOverriddenKey = "machineconfiguration.openshift.io/os-image-url-overridden"
// ControllerConfigName is the name of the ControllerConfig object that controllers use
ControllerConfigName = "machine-config-controller"
// KernelTypeDefault denominates the default kernel type
KernelTypeDefault = "default"
// KernelTypeRealtime denominates the realtime kernel type
KernelTypeRealtime = "realtime"
// MasterLabel defines the label associated with master node. The master taint uses the same label as taint's key
MasterLabel = "node-role.kubernetes.io/master"
// MCNameSuffixAnnotationKey is used to keep track of the machine config name associated with a CR
MCNameSuffixAnnotationKey = "machineconfiguration.openshift.io/mc-name-suffix"
// MaxMCNameSuffix is the maximum value of the name suffix of the machine config associated with kubeletconfig and containerruntime objects
MaxMCNameSuffix int = 9
// ClusterFeatureInstanceName is a singleton name for featureGate configuration
ClusterFeatureInstanceName = "cluster"
// ClusterNodeInstanceName is a singleton name for node configuration
ClusterNodeInstanceName = "cluster"
// MachineConfigPoolMaster is the MachineConfigPool name given to the master
MachineConfigPoolMaster = "master"
// MachineConfigPoolWorker is the MachineConfigPool name given to the worker
MachineConfigPoolWorker = "worker"
)