Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[application] Add defaultMode to SecretVolumes and ConfigVolumes #146

Merged
merged 4 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions charts/application/templates/_podTemplate.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -295,11 +295,17 @@ spec:
{{- range .Values.secretVolumes }}
- name: {{ .secretName }}
mountPath: {{ .mountPath }}
{{- if .defaultMode }}
defaultMode: {{ .defaultMode }}
{{- end }}
readOnly: true
{{- end }}
{{- range .Values.configVolumes }}
- name: {{ .configMapName }}
mountPath: {{ .mountPath }}
{{- if .defaultMode }}
defaultMode: {{ .defaultMode }}
{{- end }}
readOnly: true
{{- end }}
{{- if .Values.serviceAccount.secretName }}
Expand Down
1 change: 1 addition & 0 deletions charts/application/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ secretVolumes: []
configVolumes: []
# - configMapName: myconfigmap
# mountPath: /mypath
# defaultMode: 420
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same for secretVolumes, please.


# list of secret names to be used as envFrom entries
secretEnvFrom: []
Expand Down
Loading