feat(argo-cd): change application-controller to StatefulSet (#512)

* update deployment to statefulset
* Update chart version

Signed-off-by: Chris Sauer <mr-sour@users.noreply.github.com>

* chore: Bumping minor semver as this has a resource change
* chore: Add feature flag for enabling StatefulSet

Signed-off-by: seanson@users.noreply.github.com <seanson@users.noreply.github.com>
This commit is contained in:
Christopher Sauer 2020-12-15 00:15:13 -06:00 committed by GitHub
parent 5e0755f2f6
commit a6a9d0bf7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 49 additions and 33 deletions

View file

@ -1,6 +1,6 @@
{{- $redisHa := (index .Values "redis-ha") -}}
apiVersion: apps/v1
kind: Deployment
kind: {{ .Values.controller.enableStatefulSet | ternary "StatefulSet" "Deployment" }}
metadata:
name: {{ template "argo-cd.controller.fullname" . }}
labels:
@ -16,6 +16,9 @@ spec:
matchLabels:
app.kubernetes.io/name: {{ include "argo-cd.name" . }}-application-controller
app.kubernetes.io/instance: {{ .Release.Name }}
{{- if .Values.controller.enableStatefulSet }}
serviceName: {{ template "argo-cd.controller.fullname" . }}
{{- end }}
revisionHistoryLimit: 5
replicas: {{ .Values.controller.replicas }}
template: