File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
- {{- if and (eq (include "seleniumGrid.useKEDA" $) "true") $.Values.autoscaling.patchObjectFinalizers.enabled }}
1
+ {{- if $.Values.autoscaling.patchObjectFinalizers.enabled }}
2
2
apiVersion : batch/v1
3
3
kind : Job
4
4
metadata :
28
28
command : ["/bin/bash", "-c"]
29
29
args :
30
30
- |
31
+ echo "Cleaning up ScaledObjects, ScaledJobs and HPAs for {{ .Release.Name }} when upgrading or disabling autoscaling."
31
32
kubectl get ScaledObjects,ScaledJobs -n {{ .Release.Namespace }} -l component.autoscaling={{ .Release.Name }} -o=json | jq '.metadata.finalizers = null' | kubectl apply -f - || true ;
32
33
kubectl delete ScaledObjects,ScaledJobs -n {{ .Release.Namespace }} -l component.autoscaling={{ .Release.Name }} --wait || true ;
33
34
kubectl delete hpa -n {{ .Release.Namespace }} -l component.autoscaling={{ .Release.Name }} --wait || true ;
Original file line number Diff line number Diff line change @@ -1226,7 +1226,6 @@ customLabels: {}
1226
1226
# Configuration for dependency chart keda
1227
1227
keda :
1228
1228
additionalAnnotations :
1229
- " helm.sh/hook " : pre-install,pre-upgrade,pre-rollback
1230
1229
http :
1231
1230
timeout : 60000
1232
1231
webhooks :
You can’t perform that action at this time.
0 commit comments