feat(argo-cd): Add extraVolumes Dex server (#961)

Related to https://github.com/argoproj/argo-helm/issues/960

Add extraVolumes and extraVolumeMounts for dex server

Signed-off-by: Iago Santos <iago.santos.pardo@adfinis.com>
This commit is contained in:
Iago Santos 2021-10-12 20:49:14 +02:00 committed by GitHub
parent 1ceb47ff76
commit 093a162ab8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 2 deletions

View file

@ -2,7 +2,7 @@ apiVersion: v2
appVersion: 2.1.3 appVersion: 2.1.3
description: A Helm chart for ArgoCD, a declarative, GitOps continuous delivery tool for Kubernetes. description: A Helm chart for ArgoCD, a declarative, GitOps continuous delivery tool for Kubernetes.
name: argo-cd name: argo-cd
version: 3.24.0 version: 3.25.0
home: https://github.com/argoproj/argo-helm home: https://github.com/argoproj/argo-helm
icon: https://argoproj.github.io/argo-cd/assets/logo.png icon: https://argoproj.github.io/argo-cd/assets/logo.png
keywords: keywords:
@ -21,4 +21,4 @@ dependencies:
condition: redis-ha.enabled condition: redis-ha.enabled
annotations: annotations:
artifacthub.io/changes: | artifacthub.io/changes: |
- "[Added]: Use Istio port name naming convention for redis" - "[Added]: Uses extraVolumes and extraVolumeMounts for dex server"

View file

@ -445,6 +445,8 @@ NAME: my-release
| dex.tolerations | [Tolerations for use with node taints](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/) | `[]` | | dex.tolerations | [Tolerations for use with node taints](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/) | `[]` |
| dex.volumeMounts | Dex volume mounts | `"/shared"` | | dex.volumeMounts | Dex volume mounts | `"/shared"` |
| dex.volumes | Dex volumes | `{}` | | dex.volumes | Dex volumes | `{}` |
| dex.extraVolumeMounts | Extra dex volume mounts | `[]` |
| dex.extraVolumes | Extra dex volumes | `[]` |
## Redis ## Redis

View file

@ -98,6 +98,9 @@ spec:
{{- if .Values.dex.volumeMounts }} {{- if .Values.dex.volumeMounts }}
{{- toYaml .Values.dex.volumeMounts | nindent 8 }} {{- toYaml .Values.dex.volumeMounts | nindent 8 }}
{{- end }} {{- end }}
{{- if .Values.dex.extraVolumeMounts }}
{{- toYaml .Values.dex.extraVolumeMounts | nindent 8 }}
{{- end }}
resources: resources:
{{- toYaml .Values.dex.resources | nindent 10 }} {{- toYaml .Values.dex.resources | nindent 10 }}
{{- with .Values.dex.extraContainers }} {{- with .Values.dex.extraContainers }}
@ -137,6 +140,9 @@ spec:
{{- if .Values.dex.volumes }} {{- if .Values.dex.volumes }}
{{- toYaml .Values.dex.volumes | nindent 6 }} {{- toYaml .Values.dex.volumes | nindent 6 }}
{{- end }} {{- end }}
{{- if .Values.dex.extraVolumes }}
{{- toYaml .Values.dex.extraVolumes | nindent 6 }}
{{- end }}
{{- if .Values.dex.priorityClassName }} {{- if .Values.dex.priorityClassName }}
priorityClassName: {{ .Values.dex.priorityClassName }} priorityClassName: {{ .Values.dex.priorityClassName }}
{{- end }} {{- end }}

View file

@ -314,6 +314,12 @@ dex:
- name: static-files - name: static-files
emptyDir: {} emptyDir: {}
## Extra volumes to the controller pod.
extraVolumes: []
## Extra volumeMounts to the controller pod.
extraVolumeMounts: []
## Dex deployment container ports ## Dex deployment container ports
containerPortHttp: 5556 containerPortHttp: 5556
servicePortHttp: 5556 servicePortHttp: 5556