Skip to content

Commit

Permalink
fix pull-kubernetes-verify error
Browse files Browse the repository at this point in the history
  • Loading branch information
tommas1988 committed Dec 26, 2023
1 parent c7f4fe1 commit 114aca5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/kubeadm/app/phases/controlplane/components.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import (
"k8s.io/kubernetes/cmd/kubeadm/app/util/staticpod"
)

// ControlPlaneComponents contains all components in control plane
var ControlPlaneComponents = []string{
kubeadmconstants.KubeAPIServer,
kubeadmconstants.KubeControllerManager,
Expand All @@ -50,7 +51,7 @@ type component struct {
touched bool
}

// WaitForControlPlaneComponent wait for control plane component to be ready by check pod status returned by kubelet
// WaitForControlPlaneComponents wait for control plane component to be ready by check pod status returned by kubelet
func WaitForControlPlaneComponents(componentNames []string, timeout time.Duration, manifestDir, kubeletDir, certificatesDir string) error {
certFile := filepath.Join(certificatesDir, kubeadmconstants.APIServerKubeletClientCertName)
keyFile := filepath.Join(certificatesDir, kubeadmconstants.APIServerKubeletClientKeyName)
Expand Down

0 comments on commit 114aca5

Please sign in to comment.