diff --git a/charts/argo-cd/templates/argocd-application-controller-deployment.yaml b/charts/argo-cd/templates/argocd-application-controller-deployment.yaml index 31dd0a0b..73da5728 100755 --- a/charts/argo-cd/templates/argocd-application-controller-deployment.yaml +++ b/charts/argo-cd/templates/argocd-application-controller-deployment.yaml @@ -40,4 +40,12 @@ spec: port: {{ .Values.applicationController.containerPort }} initialDelaySeconds: 5 periodSeconds: 10 + volumeMounts: + {{- if .Values.applicationController.volumeMounts }} + {{ toYaml .Values.applicationController.volumeMounts | nindent 8 | trim }} + {{- end }} serviceAccountName: argocd-application-controller + volumes: + {{- if .Values.applicationController.volumes }} + {{ toYaml .Values.applicationController.volumes | nindent 6 | trim }} + {{- end }} diff --git a/charts/argo-cd/templates/argocd-dex-server-deployment.yaml b/charts/argo-cd/templates/argocd-dex-server-deployment.yaml index 8d7bc1c1..0b04870a 100644 --- a/charts/argo-cd/templates/argocd-dex-server-deployment.yaml +++ b/charts/argo-cd/templates/argocd-dex-server-deployment.yaml @@ -43,6 +43,12 @@ spec: volumeMounts: - mountPath: /shared name: static-files + {{- if .Values.dexServer.volumeMounts }} + {{ toYaml .Values.dexServer.volumeMounts | nindent 8 | trim }} + {{- end }} volumes: - emptyDir: {} - name: static-files \ No newline at end of file + name: static-files + {{- if .Values.dexServer.volumes }} + {{ toYaml .Values.dexServer.volumes | nindent 6 | trim }} + {{- end }} diff --git a/charts/argo-cd/templates/argocd-repo-server-deployment.yaml b/charts/argo-cd/templates/argocd-repo-server-deployment.yaml index 66229263..5522dd73 100755 --- a/charts/argo-cd/templates/argocd-repo-server-deployment.yaml +++ b/charts/argo-cd/templates/argocd-repo-server-deployment.yaml @@ -36,3 +36,11 @@ spec: port: {{ .Values.repoServer.containerPort }} initialDelaySeconds: 5 periodSeconds: 10 + volumeMounts: + {{- if .Values.repoServer.volumeMounts }} + {{ toYaml .Values.repoServer.volumeMounts | nindent 8 | trim }} + {{- end }} + volumes: + {{- if .Values.repoServer.volumes }} + {{ toYaml .Values.repoServer.volumes | nindent 6 | trim }} + {{- end }} diff --git a/charts/argo-cd/templates/argocd-server-deployment.yaml b/charts/argo-cd/templates/argocd-server-deployment.yaml index 928a3c15..73d21b2d 100755 --- a/charts/argo-cd/templates/argocd-server-deployment.yaml +++ b/charts/argo-cd/templates/argocd-server-deployment.yaml @@ -46,6 +46,9 @@ spec: volumeMounts: - mountPath: /shared name: static-files + {{- if .Values.server.volumeMounts }} + {{ toYaml .Values.server.volumeMounts | nindent 8 | trim }} + {{- end }} ports: - containerPort: {{ .Values.server.containerPort }} readinessProbe: @@ -57,3 +60,6 @@ spec: volumes: - emptyDir: {} name: static-files + {{- if .Values.server.volumes }} + {{ toYaml .Values.server.volumes | nindent 6 | trim }} + {{- end }} diff --git a/charts/argo-cd/values.yaml b/charts/argo-cd/values.yaml index 2c19851f..bca77079 100644 --- a/charts/argo-cd/values.yaml +++ b/charts/argo-cd/values.yaml @@ -5,6 +5,8 @@ applicationController: repository: argoproj/argocd tag: v0.12.1 pullPolicy: Always + volumeMounts: [] + volumes: [] server: containerPort: 8080 @@ -20,7 +22,9 @@ server: tag: v0.12.1 pullPolicy: Always extraArgs: [] - + volumeMounts: [] + volumes: [] + repoServer: containerPort: 8081 servicePort: 8081 @@ -28,6 +32,8 @@ repoServer: repository: argoproj/argocd tag: v0.12.1 pullPolicy: Always + volumeMounts: [] + volumes: [] dexServer: containerPortHttp: 5556 @@ -42,6 +48,8 @@ dexServer: repository: argoproj/argocd tag: v0.12.1 pullPolicy: Always + volumeMounts: [] + volumes: [] # terminate tls at ArgoCD level ingress: