mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-28 08:59:34 -05:00
a68ee817ff
AB#2074: Add configurable k8s version Configurable version flow: * cli config holds/validates k8sVersion * InitCluster receive a k8sVersion arg * InitCluster creates CM "k8s-version" * kubeadm's InitConfiguration receives k8sVersion * joinservice spec mounts/reads k8s-version CM * joinservice supplies k8sVersion via JoinTicketResponse Other changes: * Remove unused test code (FakeK8SClient) * move VersionConfig map to /internal/versions * installk8sComponents is now a function instead of a method
17 lines
707 B
Go
17 lines
707 B
Go
package k8sapi
|
|
|
|
const (
|
|
// Paths and permissions necessary for Kubernetes installation.
|
|
cniPluginsDir = "/opt/cni/bin"
|
|
binDir = "/run/state/bin"
|
|
kubeadmPath = "/run/state/bin/kubeadm"
|
|
kubeletPath = "/run/state/bin/kubelet"
|
|
kubectlPath = "/run/state/bin/kubectl"
|
|
kubeletServiceEtcPath = "/etc/systemd/system/kubelet.service"
|
|
kubeletServiceStatePath = "/run/state/systemd/system/kubelet.service"
|
|
kubeadmConfEtcPath = "/etc/systemd/system/kubelet.service.d/10-kubeadm.conf"
|
|
kubeadmConfStatePath = "/run/state/systemd/system/kubelet.service.d/10-kubeadm.conf"
|
|
executablePerm = 0o544
|
|
systemdUnitPerm = 0o644
|
|
)
|