We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a589cae commit ce02acdCopy full SHA for ce02acd
installer/install.sh
@@ -14,8 +14,7 @@ check_required_param() {
14
15
# Clean leftover pods from the csdp-installer job
16
clean_failed_pods() {
17
- res=$(kubectl get pods -n ${NAMESPACE} --sort-by=.status.startTime -l app=csdp-installer --field-selector status.phase!=Running | awk '{print $2}' | tail -n +2 | xargs kubectl delete pods)
18
- echo "${res}"
+ kubectl get pods -n ${NAMESPACE} --sort-by=.metadata.creationTimestamp -l app=csdp-installer --field-selector status.phase!=Running -o name | tac | tail -n +2 | xargs kubectl delete || true
19
}
20
21
# Constants:
0 commit comments