Skip to content

Commit

Permalink
Merge branches 'w/2.9/bugfix/ci-fix-snapshot-delete-pod-stuck' and 'q…
Browse files Browse the repository at this point in the history
…/3141/2.8/bugfix/ci-fix-snapshot-delete-pod-stuck' into tmp/octopus/q/2.9
  • Loading branch information
bert-e committed Feb 22, 2021
3 parents 186e4b8 + 37ab61d + dcd0240 commit db2278a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eve/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1916,7 +1916,7 @@ stages:
ssh -F ssh_config bootstrap <<ENDSSH
for ns in \$(sudo kubectl get ns --kubeconfig=/etc/kubernetes/admin.conf -o jsonpath='{.items[*].metadata.name}'); do
node_aff_pods=\$(sudo kubectl get pods --kubeconfig=/etc/kubernetes/admin.conf -n "\$ns" | grep NodeAffinity | awk '{print \$1}' | tr \\n ' ')
if [ \$node_aff_pods ]; then
if [ "\$node_aff_pods" ]; then
sudo kubectl delete pods --kubeconfig=/etc/kubernetes/admin.conf -n "\$ns" \$node_aff_pods
fi
done
Expand Down

0 comments on commit db2278a

Please sign in to comment.