Skip to content
This repository has been archived by the owner on Mar 29, 2023. It is now read-only.

Commit

Permalink
Wait until the pod is deleted before continuing
Browse files Browse the repository at this point in the history
  • Loading branch information
mcasperson committed May 10, 2021
1 parent c674075 commit 6183b25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/shutdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ spec:
- name: k8s
image: bitnami/kubectl
imagePullPolicy: IfNotPresent
command: ["/bin/sh","-c", "kubectl patch statefulset octopus -p '{\"spec\": {\"replicas\": 0}}'; kubectl rollout status statefulset/octopus;"]
command: ["/bin/sh","-c", "kubectl patch statefulset octopus -p '{\"spec\": {\"replicas\": 0}}'; until kubectl get pod octopus-0 2>&1 >/dev/null; do sleep 10; done"]

0 comments on commit 6183b25

Please sign in to comment.