Merge pull request #120040 from chendave/unused_args

kubeadm: Cleanup the unused input parameters
This commit is contained in:
Kubernetes Prow Robot 2023-08-18 05:38:30 -07:00 committed by GitHub
commit e2afa175e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 5 deletions

View File

@ -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)

View File

@ -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,
}, },
} }