diff --git a/charts/argocd-notifications/templates/deployment.yaml b/charts/argocd-notifications/templates/deployment.yaml index 7a2b3efb..14fd9f48 100644 --- a/charts/argocd-notifications/templates/deployment.yaml +++ b/charts/argocd-notifications/templates/deployment.yaml @@ -5,6 +5,8 @@ metadata: labels: {{- include "argocd-notifications.labels" . | nindent 4 }} spec: + strategy: + {{- .Values.updateStrategy | toYaml | nindent 4 }} selector: matchLabels: {{- include "argocd-notifications.selectorLabels" . | nindent 6 }} @@ -13,8 +15,6 @@ spec: labels: {{- include "argocd-notifications.selectorLabels" . | nindent 8 }} spec: - strategy: - type: Recreate {{- with .Values.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 8 }} diff --git a/charts/argocd-notifications/values.yaml b/charts/argocd-notifications/values.yaml index 362156df..993b75bb 100644 --- a/charts/argocd-notifications/values.yaml +++ b/charts/argocd-notifications/values.yaml @@ -16,6 +16,9 @@ nameOverride: "argocd-notifications" nodeSelector: {} +updateStrategy: + type: Recreate + secret: # Whether helm chart creates controller secret create: true