Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit 03c3d8e

Browse files
Mario Valderramahexfusion
authored andcommitted
pkg/*: Use endpoint status for probes
1 parent 60bf56e commit 03c3d8e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/util/k8sutil/pod_util.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ func containerWithRequirements(c v1.Container, r v1.ResourceRequirements) v1.Con
7070

7171
func newEtcdProbe(isSecure bool) *v1.Probe {
7272
// etcd pod is healthy only if it can participate in consensus
73-
cmd := "ETCDCTL_API=3 etcdctl endpoint health"
73+
cmd := "ETCDCTL_API=3 etcdctl endpoint status"
7474
if isSecure {
7575
tlsFlags := fmt.Sprintf("--cert=%[1]s/%[2]s --key=%[1]s/%[3]s --cacert=%[1]s/%[4]s", operatorEtcdTLSDir, etcdutil.CliCertFile, etcdutil.CliKeyFile, etcdutil.CliCAFile)
76-
cmd = fmt.Sprintf("ETCDCTL_API=3 etcdctl --endpoints=https://localhost:%d %s endpoint health", EtcdClientPort, tlsFlags)
76+
cmd = fmt.Sprintf("ETCDCTL_API=3 etcdctl --endpoints=https://localhost:%d %s endpoint status", EtcdClientPort, tlsFlags)
7777
}
7878
return &v1.Probe{
7979
Handler: v1.Handler{

0 commit comments

Comments
 (0)