mirror of
https://github.com/clastix/kamaji.git
synced 2026-08-26 00:47:20 +00:00
fix(kubeadm): let Kubelet automatically determine resolvConf (#582)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user