Skip to content

Commit ce02acd

Browse files
Fix install script
1 parent a589cae commit ce02acd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

installer/install.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ check_required_param() {
1414

1515
# Clean leftover pods from the csdp-installer job
1616
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}"
17+
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
1918
}
2019

2120
# Constants:

0 commit comments

Comments
 (0)