From 509eb263b3102545f17966e843c876883ed605a0 Mon Sep 17 00:00:00 2001 From: Marco Maurer Date: Tue, 4 Feb 2025 09:31:03 +0100 Subject: [PATCH] feat: Allow adding extraVolume and mounts Signed-off-by: Marco Maurer --- charts/argo-cd/README.md | 2 ++ .../argo-cd/templates/argocd-commit-server/deployment.yaml | 6 ++++++ charts/argo-cd/values.yaml | 6 ++++++ 3 files changed, 14 insertions(+) diff --git a/charts/argo-cd/README.md b/charts/argo-cd/README.md index bed7de14..422bd75d 100644 --- a/charts/argo-cd/README.md +++ b/charts/argo-cd/README.md @@ -1640,6 +1640,8 @@ To read more about this component, please read [Argo CD Manifest Hydrator] and [ | commitServer.extraArgs | list | `[]` | commit server command line flags | | commitServer.extraEnv | list | `[]` | Environment variables to pass to the commit server | | commitServer.extraEnvFrom | list | `[]` (See [values.yaml]) | envFrom to pass to the commit server | +| commitServer.extraVolumeMounts | list | `[]` | List of extra mounts to add (normally used with extraVolumes) | +| commitServer.extraVolumes | list | `[]` | List of extra volumes to add | | commitServer.image.imagePullPolicy | string | `""` (defaults to global.image.imagePullPolicy) | Image pull policy for the commit server | | commitServer.image.repository | string | `""` (defaults to global.image.repository) | Repository to use for the commit server | | commitServer.image.tag | string | `""` (defaults to global.image.tag) | Tag to use for the commit server | diff --git a/charts/argo-cd/templates/argocd-commit-server/deployment.yaml b/charts/argo-cd/templates/argocd-commit-server/deployment.yaml index 592a4133..96cf6575 100644 --- a/charts/argo-cd/templates/argocd-commit-server/deployment.yaml +++ b/charts/argo-cd/templates/argocd-commit-server/deployment.yaml @@ -143,6 +143,9 @@ spec: {{- toYaml . | nindent 10 }} {{- end }} volumeMounts: + {{- with .Values.commitServer.extraVolumeMounts }} + {{- toYaml . | nindent 8 }} + {{- end }} - name: ssh-known-hosts mountPath: /app/config/ssh - name: tls-certs @@ -172,6 +175,9 @@ spec: - mountPath: /var/run/argocd name: var-files volumes: + {{- with .Values.commitServer.extraVolumes }} + {{- toYaml . | nindent 8 }} + {{- end }} - name: ssh-known-hosts configMap: name: argocd-ssh-known-hosts-cm diff --git a/charts/argo-cd/values.yaml b/charts/argo-cd/values.yaml index 3eb8fc92..600604ee 100644 --- a/charts/argo-cd/values.yaml +++ b/charts/argo-cd/values.yaml @@ -3790,6 +3790,12 @@ commitServer: # - secretRef: # name: secret-name + # -- List of extra mounts to add (normally used with extraVolumes) + extraVolumeMounts: [] + + # -- List of extra volumes to add + extraVolumes: [] + ## commit server service configuration service: # -- commit server service annotations