From 776d934bcabbcffc77eca307b5b0c74b315321f4 Mon Sep 17 00:00:00 2001 From: Harshal Patil Date: Mon, 17 Jun 2024 14:24:12 -0400 Subject: [PATCH] Kubelet option to disable cgroup v1 support Signed-off-by: Harshal Patil Kubernetes-commit: fff2b7f5666d3bb9fadd2d3731b6072c83f0c2a8 --- config/v1beta1/types.go | 8 ++++++++ config/v1beta1/zz_generated.deepcopy.go | 5 +++++ 2 files changed, 13 insertions(+) diff --git a/config/v1beta1/types.go b/config/v1beta1/types.go index b17d0a7..1f7bbc9 100644 --- a/config/v1beta1/types.go +++ b/config/v1beta1/types.go @@ -851,6 +851,14 @@ type KubeletConfiguration struct { // If not specified, the value in containerRuntimeEndpoint is used. // +optional ImageServiceEndpoint string `json:"imageServiceEndpoint,omitempty"` + + // FailCgroupV1 prevents the kubelet from starting on hosts + // that use cgroup v1. By default, this is set to 'false', meaning + // the kubelet is allowed to start on cgroup v1 hosts unless this + // option is explicitly enabled. + // Default: false + // +optional + FailCgroupV1 *bool `json:"failCgroupV1,omitempty"` } type KubeletAuthorizationMode string diff --git a/config/v1beta1/zz_generated.deepcopy.go b/config/v1beta1/zz_generated.deepcopy.go index 0e20d63..613a039 100644 --- a/config/v1beta1/zz_generated.deepcopy.go +++ b/config/v1beta1/zz_generated.deepcopy.go @@ -485,6 +485,11 @@ func (in *KubeletConfiguration) DeepCopyInto(out *KubeletConfiguration) { *out = new(bool) **out = **in } + if in.FailCgroupV1 != nil { + in, out := &in.FailCgroupV1, &out.FailCgroupV1 + *out = new(bool) + **out = **in + } return }