Skip to content

Commit

Permalink
DMVP-170 have option to set volume name if there is need (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdntgrn committed Nov 15, 2021
1 parent 57e8818 commit f79eb10
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions charts/base/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ 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.1.13
version: 0.1.14

# 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.1.13"
appVersion: "0.1.14"
2 changes: 1 addition & 1 deletion charts/base/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ appVersion: "0.1.0"
dependencies:
- name: base
version: 0.1.11
version: 0.1.14
repository: https://dasmeta.github.io/helm
alias: my-app-base
```
Expand Down
4 changes: 2 additions & 2 deletions charts/base/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ spec:
{{- if .Values.deployment.volumes }}
volumeMounts:
{{- range $index, $element := .Values.deployment.volumes }}
- name: {{ $index }}
- name: {{ coalesce $element.name (add $index 1) }}
mountPath: {{ $element.mountPath }}
{{- end }}
{{- end }}
{{- if .Values.deployment.volumes }}
volumes:
{{- range $index, $element := .Values.deployment.volumes }}
- name: {{ $index }}
- name: {{ coalesce $element.name (add $index 1) }}
persistentVolumeClaim:
claimName: {{ $element.persistentVolumeClaim.claimName }}
{{- end }}
Expand Down

0 comments on commit f79eb10

Please sign in to comment.