Skip to content

Commit

Permalink
Pull snapshot controller replicas from deployment
Browse files Browse the repository at this point in the history
Signed-off-by: Grant Griffiths <grant@portworx.com>
  • Loading branch information
ggriffiths committed Dec 3, 2019
1 parent 6f63fc5 commit c5ba7da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion release-tools/prow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ install_snapshot_controller() {

kubectl apply -f "https://github.com/kubernetes-csi/external-snapshotter/${CSI_SNAPSHOTTER_VERSION}/deploy/kubernetes/snapshot-controller/setup-snapshot-controller.yaml"
cnt=0
expected_running_pods=3
expected_running_pods=$(curl https://github.com/kubernetes-csi/external-snapshotter/${CSI_SNAPSHOTTER_VERSION}/deploy/kubernetes/snapshot-controller/setup-snapshot-controller.yaml | grep replicas | cut -d ':' -f 2-)
while [ "$(kubectl get pods -l app=snapshot-controller | grep 'Running' -c)" -lt $expected_running_pods ]; do
if [ $cnt -gt 30 ]; then
echo "snapshot-controller pod status:"
Expand Down

0 comments on commit c5ba7da

Please sign in to comment.