mirror of
https://github.com/projectcapsule/capsule.git
synced 2026-08-25 16:07:24 +00:00
feat(helm): remove scale down before uninstall
This commit is contained in:
committed by
Dario Tranchitella
parent
3d6f29fa43
commit
ef26d0e6db
@@ -1,7 +1,4 @@
|
||||
{{- $cmd := ""}}
|
||||
{{- if eq .Values.manager.kind "Deployment" }}
|
||||
{{- $cmd = printf "kubectl scale deployment -n $NAMESPACE %s --replicas 0 &&" (include "capsule.controllerName" .) -}}
|
||||
{{- end }}
|
||||
{{- if not .Values.certManager.generateCertificates }}
|
||||
{{- $cmd = printf "%s kubectl delete secret -n $NAMESPACE %s --ignore-not-found &&" $cmd (include "capsule.secretTlsName" .) -}}
|
||||
{{- end }}
|
||||
|
||||
Reference in New Issue
Block a user