From f483e812a5baefd7cd6489e90116ee506d5d7cb2 Mon Sep 17 00:00:00 2001 From: Wouter van Os Date: Thu, 19 Sep 2024 19:15:30 +0200 Subject: [PATCH] fix(kubeadm): let Kubelet automatically determine resolvConf (#582) --- internal/kubeadm/uploadconfig.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/kubeadm/uploadconfig.go b/internal/kubeadm/uploadconfig.go index cbd86a5..cd2fff4 100644 --- a/internal/kubeadm/uploadconfig.go +++ b/internal/kubeadm/uploadconfig.go @@ -89,6 +89,9 @@ func getKubeletConfigmapContent(kubeletConfiguration KubeletConfiguration) ([]by // kubeadm <= v1.27 has a different type for FlushFrequency // https://github.com/kubernetes/component-base/blob/55b3ab0db0081303695d641b9b43d560bf3f7a65/logs/api/v1/types.go#L42-L45 kc.Logging.FlushFrequency.SerializeAsString = false + // Restore default behaviour so Kubelet will automatically + // determine the resolvConf location, as reported in clastix/kamaji#581. + kc.ResolverConfig = nil return utilities.EncodeToYaml(&kc) }