feat(argo-cd): Add optional mapping of argocd-repo-server emptydir to custom volumes (#2410)
* Add optional volumes to replace emptydir Provide user-driven option to replace emptydir volumes with desired solution Signed-off-by: Michele Sacchetti <michele.sacchetti@aroundthecode.org> * existingVolumes default values provide default values with empy object to ensure default behavior is backward-compatible Signed-off-by: Michele Sacchetti <michele.sacchetti@aroundthecode.org> * Update Chart.yaml bump version Signed-off-by: Michele Sacchetti <michele.sacchetti@aroundthecode.org> * Update Chart.yaml add changelog Signed-off-by: Michele Sacchetti <michele.sacchetti@aroundthecode.org> * fix docs fix docs on new entry Signed-off-by: Michele Sacchetti <michele.sacchetti@aroundthecode.org> * fix readme Signed-off-by: Michele Sacchetti <michele.sacchetti@aroundthecode.org> * Update README.md.gotmpl Signoff commit Signed-off-by: Michele Sacchetti <michele.sacchetti@aroundthecode.org> * fix readme Signed-off-by: Michele Sacchetti <michele.sacchetti@aroundthecode.org> * fixCamelCase Signed-off-by: Michele Sacchetti <michele.sacchetti@aroundthecode.org> --------- Signed-off-by: Michele Sacchetti <michele.sacchetti@aroundthecode.org>
This commit is contained in:
parent
e37093f273
commit
508162f1cc
5 changed files with 50 additions and 3 deletions
|
|
@ -373,14 +373,30 @@ spec:
|
|||
{{- end }}
|
||||
{{- if .Values.repoServer.useEphemeralHelmWorkingDir }}
|
||||
- name: helm-working-dir
|
||||
{{- if .Values.repoServer.existingVolumes.helmWorkingDir -}}
|
||||
{{ toYaml .Values.repoServer.existingVolumes.helmWorkingDir | nindent 8 }}
|
||||
{{- else }}
|
||||
emptyDir: {}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
- name: plugins
|
||||
{{- if .Values.repoServer.existingVolumes.plugins -}}
|
||||
{{ toYaml .Values.repoServer.existingVolumes.plugins | nindent 8 }}
|
||||
{{- else }}
|
||||
emptyDir: {}
|
||||
{{- end }}
|
||||
- name: var-files
|
||||
{{- if .Values.repoServer.existingVolumes.varFiles -}}
|
||||
{{ toYaml .Values.repoServer.existingVolumes.varFiles | nindent 8 }}
|
||||
{{- else }}
|
||||
emptyDir: {}
|
||||
{{- end }}
|
||||
- name: tmp
|
||||
{{- if .Values.repoServer.existingVolumes.tmp -}}
|
||||
{{ toYaml .Values.repoServer.existingVolumes.tmp | nindent 8 }}
|
||||
{{- else }}
|
||||
emptyDir: {}
|
||||
{{- end }}
|
||||
- name: ssh-known-hosts
|
||||
configMap:
|
||||
name: argocd-ssh-known-hosts-cm
|
||||
|
|
@ -391,7 +407,11 @@ spec:
|
|||
configMap:
|
||||
name: argocd-gpg-keys-cm
|
||||
- name: gpg-keyring
|
||||
{{- if .Values.repoServer.existingVolumes.gpgKeyring -}}
|
||||
{{ toYaml .Values.repoServer.existingVolumes.gpgKeyring | nindent 8 }}
|
||||
{{- else }}
|
||||
emptyDir: {}
|
||||
{{- end }}
|
||||
- name: argocd-repo-server-tls
|
||||
secret:
|
||||
secretName: argocd-repo-server-tls
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue