Skip to content

Commit 7b8428d

Browse files
author
Sedef
committed
Minor comments
1 parent 719ce02 commit 7b8428d

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

controlplane/kubeadm/internal/cluster.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ func (m *Management) getApiServerEtcdClientCert(ctx context.Context, clusterKey
181181

182182
type healthCheck func(context.Context) (HealthCheckResult, error)
183183

184-
// IsEndpointHealthy will run a generic health check function and report any errors discovered.
184+
// healthCheck will run a generic health check function and report any errors discovered.
185185
// In addition to the health check, it also ensures there is a 1;1 match between nodes and machines.
186186
func (m *Management) healthCheck(ctx context.Context, check healthCheck, clusterKey client.ObjectKey) error {
187187
var errorList []error

controlplane/kubeadm/internal/etcd/etcd.go

-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ func NewClient(ctx context.Context, endpoints []string, p proxy.Proxy, tlsConfig
134134
},
135135
TLS: tlsConfig,
136136
})
137-
138137
if err != nil {
139138
return nil, errors.Wrap(err, "unable to create etcd client")
140139
}

controlplane/kubeadm/internal/workload_cluster_etcd.go

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ package internal
1818

1919
import (
2020
"context"
21+
2122
"github.com/pkg/errors"
2223
corev1 "k8s.io/api/core/v1"
2324
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

0 commit comments

Comments
 (0)