From b50eaa4565b8643cecf9fb1216a5470d8efb4423 Mon Sep 17 00:00:00 2001 From: Srishti Thakkar Date: Wed, 20 Jan 2021 14:58:56 +0530 Subject: [PATCH] Issue 291: Fixing post-install-upgrade hook (#293) Signed-off-by: SrishT Co-authored-by: SrishT --- charts/zookeeper/templates/post-install-upgrade-hooks.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/zookeeper/templates/post-install-upgrade-hooks.yaml b/charts/zookeeper/templates/post-install-upgrade-hooks.yaml index 9be6ac589..31eed28ab 100644 --- a/charts/zookeeper/templates/post-install-upgrade-hooks.yaml +++ b/charts/zookeeper/templates/post-install-upgrade-hooks.yaml @@ -63,7 +63,7 @@ data: set -e sleep 30 - replicas=`kubectl get zk -n {{ .Release.Namespace }} {{ template "zookeeper.fullname" . }} -o jsonpath='{.status.replicas}'` + replicas=`kubectl get zk -n {{ .Release.Namespace }} {{ template "zookeeper.fullname" . }} -o jsonpath='{.spec.replicas}'` readyReplicas=`kubectl get zk -n {{ .Release.Namespace }} {{ template "zookeeper.fullname" . }} -o jsonpath='{.status.readyReplicas}'` currentVersion=`kubectl get zk -n {{ .Release.Namespace }} {{ template "zookeeper.fullname" . }} -o jsonpath='{.status.currentVersion}'` targetVersion=`kubectl get zk -n {{ .Release.Namespace }} {{ template "zookeeper.fullname" . }} -o jsonpath='{.spec.image.tag}'`