fix(argo-cd) Make argocd-server /home/argocd/.aws writeable when using readOnlyRootFilesystem=false security context (#1006)

Signed-off-by: Simon Ninon <simon.ninon@gmail.com>
This commit is contained in:
Simon Ninon 2021-11-06 01:23:27 -07:00 committed by GitHub
parent c1e7213cdc
commit b8c689e3c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View file

@ -90,6 +90,10 @@ spec:
subPath: "custom.styles.css"
name: custom-styles
{{- end }}
{{- if .Values.server.containerSecurityContext.readOnlyRootFilesystem }}
- mountPath: /home/argocd/.aws
name: aws-config
{{- end }}
- mountPath: /tmp
name: tmp-dir
ports:
@ -164,6 +168,10 @@ spec:
name: static-files
- emptyDir: {}
name: tmp-dir
{{- if .Values.server.containerSecurityContext.readOnlyRootFilesystem }}
- emptyDir: {}
name: aws-config
{{- end }}
{{- if .Values.configs.styles }}
- configMap:
name: argocd-custom-styles