Skip to content

Commit 8036067

Browse files
authored
Redo indentation for lifecycle script (#112)
1 parent 99d3c76 commit 8036067

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

pkg/resources/kafka/pod.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,15 @@ func (r *Reconciler) pod(id int32, brokerConfig *v1beta1.BrokerConfig, pvcs []co
6565
Exec: &corev1.ExecAction{
6666
Command: []string{"bash", "-c", `
6767
if [[ -n "$ENVOY_SIDECAR_STATUS" ]]; then
68-
HEALTHYSTATUSCODE="200"
69-
SC=$(curl -s -o /dev/null -w "%{http_code}" http://localhost:15000/ready)
70-
if [[ "$SC" == "$HEALTHYSTATUSCODE" ]]; then
71-
kill -s TERM $(pidof java)
68+
HEALTHYSTATUSCODE="200"
69+
SC=$(curl -s -o /dev/null -w "%{http_code}" http://localhost:15000/ready)
70+
if [[ "$SC" == "$HEALTHYSTATUSCODE" ]]; then
71+
kill -s TERM $(pidof java)
72+
else
73+
kill -s KILL $(pidof java)
74+
fi
7275
else
73-
kill -s KILL $(pidof java)
74-
fi
75-
else
76-
kill -s TERM $(pidof java)
76+
kill -s TERM $(pidof java)
7777
fi`},
7878
},
7979
},

0 commit comments

Comments
 (0)