-
Notifications
You must be signed in to change notification settings - Fork 460
/
constants.go
64 lines (47 loc) · 2.06 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
package constants
const (
// KernelParamRoot is the kernel parameter name for specifying the root
// disk.
KernelParamRoot = "dianemo.autonomy.io/root"
// KernelParamUserData is the kernel parameter name for specifying the URL
// to the user data.
KernelParamUserData = "dianemo.autonomy.io/userdata"
// KernelParamPlatform is the kernel parameter name for specifying the
// platform.
KernelParamPlatform = "dianemo.autonomy.io/platform"
// NewRoot is the path where the switchroot target is mounted.
NewRoot = "/root"
// DataPartitionLabel is the label of the partition to use for mounting at
// the data path.
DataPartitionLabel = "DATA"
// RootPartitionLabel is the label of the partition to use for mounting at
// the root path.
RootPartitionLabel = "ROOT"
// PATH defines all locations where executables are stored.
PATH = "/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/opt/cni/bin"
// ContainerRuntimeDocker is the name of the Docker container runtime.
ContainerRuntimeDocker = "docker"
// ContainerRuntimeDockerSocket is the path to the Docker daemon socket.
ContainerRuntimeDockerSocket = "/var/run/docker.sock"
// ContainerRuntimeCRIO is the name of the CRI-O container runtime.
ContainerRuntimeCRIO = "crio"
// ContainerRuntimeCRIOSocket is the path to the CRI-O daemon socket.
ContainerRuntimeCRIOSocket = "/var/run/crio/crio.sock"
// KubeadmConfig is the path to the kubeadm manifest file.
KubeadmConfig = "/etc/kubernetes/kubeadm-config.yaml"
// KubeadmCACert is the path to the root CA certificate.
KubeadmCACert = "/etc/kubernetes/pki/ca.crt"
// KubeadmCAKey is the path to the root CA private key.
KubeadmCAKey = "/etc/kubernetes/pki/ca.key"
// UserDataPath is the path to the downloaded user data.
UserDataPath = "/var/run/userdata.yaml"
)
// See https://linux.die.net/man/3/klogctl
const (
// SYSLOG_ACTION_SIZE_BUFFER is a named type argument to klogctl.
// nolint: golint
SYSLOG_ACTION_SIZE_BUFFER = 10
// SYSLOG_ACTION_READ_ALL is a named type argument to klogctl.
// nolint: golint
SYSLOG_ACTION_READ_ALL = 3
)