Skip to content

Commit

Permalink
Revoke systemd cgroup driver
Browse files Browse the repository at this point in the history
  • Loading branch information
mjura committed Jan 17, 2022
1 parent c3c6458 commit 7b6061f
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions internal/pkg/skuba/node/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ nodeRegistration:
cni-bin-dir: /usr/lib/cni
hostname-override: worker-0
pod-infra-container-image: registry.suse.de/devel/caasp/4.0/containers/containers/caasp/v4/pause:3.1
cgroup-driver: systemd
name: worker-0
`

Expand Down Expand Up @@ -163,7 +162,6 @@ func Test_documentMapToJoinConfiguration(t *testing.T) {
"cni-bin-dir": "/usr/lib/cni",
"hostname-override": "worker-0",
"pod-infra-container-image": "registry.suse.de/devel/caasp/4.0/containers/containers/caasp/v4/pause:3.1",
"cgroup-driver": "systemd",
},
},
CACertPath: "/etc/kubernetes/pki/ca.crt",
Expand Down
1 change: 0 additions & 1 deletion internal/pkg/skuba/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ func AddTargetInformationToInitConfigurationWithClusterVersion(target *deploymen
initConfiguration.NodeRegistration.CRISocket = skuba.CRISocket
initConfiguration.NodeRegistration.KubeletExtraArgs["hostname-override"] = target.Nodename
initConfiguration.NodeRegistration.KubeletExtraArgs["pod-infra-container-image"] = kubernetes.ComponentContainerImageForClusterVersion(kubernetes.Pause, clusterVersion)
initConfiguration.NodeRegistration.KubeletExtraArgs["cgroup-driver"] = skuba.CGroupDriver
isSUSE, err := target.IsSUSEOS()
if err != nil {
return err
Expand Down
1 change: 0 additions & 1 deletion internal/pkg/skuba/node/testdata/join.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ nodeRegistration:
cni-bin-dir: /usr/lib/cni
hostname-override: worker-0
pod-infra-container-image: registry.suse.de/devel/caasp/4.0/containers/containers/caasp/v4/pause:3.1
cgroup-driver: systemd
name: worker-0
1 change: 0 additions & 1 deletion pkg/skuba/actions/node/join/join.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ func addTargetInformationToJoinConfiguration(target *deployments.Target, role de
joinConfiguration.NodeRegistration.CRISocket = skuba.CRISocket
joinConfiguration.NodeRegistration.KubeletExtraArgs["hostname-override"] = target.Nodename
joinConfiguration.NodeRegistration.KubeletExtraArgs["pod-infra-container-image"] = kubernetes.ComponentContainerImageForClusterVersion(kubernetes.Pause, clusterVersion)
joinConfiguration.NodeRegistration.KubeletExtraArgs["cgroup-driver"] = skuba.CGroupDriver
isSUSE, err := target.IsSUSEOS()
if err != nil {
return errors.Wrap(err, "unable to get os info")
Expand Down
1 change: 0 additions & 1 deletion pkg/skuba/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ const (
SUSECNIDir = "/usr/lib/cni"
// MaxNodeNameLength is the maximum node name length accepted by kubelet.
MaxNodeNameLength = 63
CGroupDriver = "systemd"
)

func KubeadmInitConfFile() string {
Expand Down

0 comments on commit 7b6061f

Please sign in to comment.