kubeadm: Cleanup the unused input parameters

Signed-off-by: Dave Chen <dave.chen@arm.com>
This commit is contained in:
Dave Chen
2023-08-18 17:18:58 +08:00
parent f563910656
commit 72af21e1a1
2 changed files with 3 additions and 5 deletions

View File

@@ -69,7 +69,7 @@ var kubeletHandler = handler{
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
klog.V(1).Infof("attempting to download the KubeletConfiguration from ConfigMap %q", configMapName)
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,
},
&healthCheck{
name: "StaticPodManifest",
client: client,
cfg: cfg,
f: staticPodManifestHealth,
name: "StaticPodManifest",
f: staticPodManifestHealth,
},
}