Skip to content

Commit

Permalink
Change volumeMounts syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Santiago Botto committed Aug 15, 2023
1 parent 19061e8 commit 6151821
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions charts/common/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.0.15-beta9
version: 0.0.15-beta10

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.0.15-beta9"
appVersion: "0.0.15-beta10"
icon: https://cncf-branding.netlify.app/img/projects/helm/horizontal/color/helm-horizontal-color.png
10 changes: 6 additions & 4 deletions charts/common/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,17 @@ spec:
{{- if .Values.deployment.volumes }}
volumeMounts:
{{- range $volume := .Values.deployment.volumes }}
{{- if or $volume.configMap $volume.secret }}
- name: {{ coalesce $volume.configMap.name $volume.secret.name }}
mountPath: {{ $volume.mountPath }}
{{- if $volume.configMap }}
- name: {{ $volume.configMap.name }}
readOnly: true
{{- else if $volume.secret }}
- name: {{ $volume.secret.name }}
readOnly: true
{{- else }}
- name: {{ $fullName }}-{{ $volume.name }}-volume
{{- end}}
mountPath: {{ $volume.mountPath }}
{{- end }}
{{- end }}
{{- end }}
{{- if .Values.command }}
command:
Expand Down

0 comments on commit 6151821

Please sign in to comment.