Skip to content

Commit

Permalink
use continue
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Chang committed Dec 17, 2024
1 parent aa6be98 commit 3f0cc8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dev-infrastructure/scripts/istio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ for ns in $namespaces; do
deployment=$(kubectl get replicaset "$owner_name" -n "$ns" -o jsonpath='{.metadata.ownerReferences[0].name}')
if [[ -n "$deployment" ]]; then
kubectl rollout restart deployment "$deployment" -n "$ns"
break 2
continue 2
else
kubectl delete pod "$pod_name" -n "$ns"
fi
;;
"StatefulSet")
deployment=$(kubectl get replicaset "$owner_name" -n "$ns" -o jsonpath='{.metadata.ownerReferences[0].name}')
kubectl rollout restart deployment "$deployment" -n "$ns"
break 2
continue 2
;;
*)
# Don't do anything for (Cron)Job, or no owner pod for now.
Expand Down

0 comments on commit 3f0cc8d

Please sign in to comment.