mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-12 13:31:52 +00:00
Merge pull request #120040 from chendave/unused_args
kubeadm: Cleanup the unused input parameters
This commit is contained in:
commit
e2afa175e4
@ -69,7 +69,7 @@ var kubeletHandler = handler{
|
|||||||
fromCluster: kubeletConfigFromCluster,
|
fromCluster: kubeletConfigFromCluster,
|
||||||
}
|
}
|
||||||
|
|
||||||
func kubeletConfigFromCluster(h *handler, clientset clientset.Interface, clusterCfg *kubeadmapi.ClusterConfiguration) (kubeadmapi.ComponentConfig, error) {
|
func kubeletConfigFromCluster(h *handler, clientset clientset.Interface, _ *kubeadmapi.ClusterConfiguration) (kubeadmapi.ComponentConfig, error) {
|
||||||
configMapName := constants.KubeletBaseConfigurationConfigMap
|
configMapName := constants.KubeletBaseConfigurationConfigMap
|
||||||
klog.V(1).Infof("attempting to download the KubeletConfiguration from ConfigMap %q", configMapName)
|
klog.V(1).Infof("attempting to download the KubeletConfiguration from ConfigMap %q", configMapName)
|
||||||
cm, err := h.fromConfigMap(clientset, configMapName, constants.KubeletBaseConfigurationConfigMapKey, true)
|
cm, err := h.fromConfigMap(clientset, configMapName, constants.KubeletBaseConfigurationConfigMapKey, true)
|
||||||
|
@ -82,10 +82,8 @@ func CheckClusterHealth(client clientset.Interface, cfg *kubeadmapi.ClusterConfi
|
|||||||
f: controlPlaneNodesReady,
|
f: controlPlaneNodesReady,
|
||||||
},
|
},
|
||||||
&healthCheck{
|
&healthCheck{
|
||||||
name: "StaticPodManifest",
|
name: "StaticPodManifest",
|
||||||
client: client,
|
f: staticPodManifestHealth,
|
||||||
cfg: cfg,
|
|
||||||
f: staticPodManifestHealth,
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user