File tree Expand file tree Collapse file tree 4 files changed +13
-1
lines changed Expand file tree Collapse file tree 4 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -2,5 +2,5 @@ apiVersion: v2
22name : csdp-installer
33description : A Helm chart used for installing a CSDP runtime
44type : application
5- version : 0.1.12
5+ version : 0.1.13
66appVersion : v0.0.6
Original file line number Diff line number Diff line change 1111 template :
1212 metadata :
1313 labels :
14+ app : {{ .Chart.Name }}
1415 {{- include "csdp-installer.selectorLabels" . | nindent 8 }}
1516 spec :
1617 serviceAccount : {{ .Values.csdpInstaller.installer.serviceAccount }}
Original file line number Diff line number Diff line change @@ -12,6 +12,12 @@ check_required_param() {
1212 fi
1313}
1414
15+ # Clean leftover pods from the csdp-installer job
16+ clean_failed_pods () {
17+ res=$( kubectl get pods -A --sort-by=.status.startTime --label-selector=app==csdp-installer | grep Failed | awk ' {print $1}' | tail -n +2 | xargs kubectl delete pods)
18+ echo res
19+ }
20+
1521# Constants:
1622CODEFRESH_SECRET_NAME=" codefresh-token"
1723CODEFRESH_CM_NAME=" codefresh-cm"
@@ -304,6 +310,9 @@ echo " ingress controller: ${CSDP_INGRESS_CONTROLLER}"
304310echo " #######################################"
305311echo " "
306312
313+ echo " Cleaning previous job pods"
314+ clean_failed_pods ()
315+
307316# 1. Check codefresh secret
308317echo " Checking secret $CODEFRESH_SECRET_NAME ..."
309318if kubectl -n " $NAMESPACE " get secret " $CODEFRESH_SECRET_NAME " ; then
Original file line number Diff line number Diff line change 77 backoffLimit : 20
88 template :
99 metadata :
10+ labels :
11+ app : csdp-installer
1012 name : csdp-installation-job
1113 spec :
1214 serviceAccount : argocd-server
You can’t perform that action at this time.
0 commit comments