Skip to content

Commit cbf56fa

Browse files
author
remi.butet
committed
[Dashboards] Add extraVolumes and extraVolumeMounts
Signed-off-by: remi.butet <[email protected]>
1 parent 2ace731 commit cbf56fa

File tree

4 files changed

+42
-2
lines changed

4 files changed

+42
-2
lines changed

charts/opensearch-dashboards/CHANGELOG.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
### Removed
1313
### Fixed
1414
### Security
15+
---
16+
## [1.0.7]
17+
### Added
18+
- Add `extraVolumes` and `extraVolumeMounts`.
19+
### Changed
20+
### Deprecated
21+
### Removed
22+
### Fixed
23+
### Security
24+
1525
---
1626
## [1.0.6]
1727
### Added
@@ -56,7 +66,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5666
### Fixed
5767
### Security
5868

59-
[Unreleased]: https://github.com/opensearch-project/helm-charts/compare/opensearch-dashboards-1.0.5...HEAD
69+
[Unreleased]: https://github.com/opensearch-project/helm-charts/compare/opensearch-dashboards-1.0.6...HEAD
70+
[1.0.6]: https://github.com/opensearch-project/helm-charts/compare/opensearch-1.0.5...opensearch-1.0.6
6071
[1.0.5]: https://github.com/opensearch-project/helm-charts/compare/opensearch-1.0.4...opensearch-1.0.5
6172
[1.0.4]: https://github.com/opensearch-project/helm-charts/compare/opensearch-1.0.2...opensearch-1.0.4
6273
[1.0.2]: https://github.com/opensearch-project/helm-charts/compare/opensearch-dashboards-1.0.1...opensearch-dashboards-1.0.2

charts/opensearch-dashboards/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 1.0.6
18+
version: 1.0.7
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

charts/opensearch-dashboards/templates/deployment.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,16 @@ spec:
4848
configMap:
4949
name: {{ template "opensearch-dashboards.fullname" . }}-config
5050
{{- end }}
51+
{{- if .Values.extraVolumes }}
52+
# Currently some extra blocks accept strings
53+
# to continue with backwards compatibility this is being kept
54+
# whilst also allowing for yaml to be specified too.
55+
{{- if eq "string" (printf "%T" .Values.extraVolumes) }}
56+
{{ tpl .Values.extraVolumes . | indent 8 }}
57+
{{- else }}
58+
{{ toYaml .Values.extraVolumes | indent 8 }}
59+
{{- end }}
60+
{{- end }}
5161
{{- with .Values.nodeSelector }}
5262
nodeSelector:
5363
{{ toYaml . | indent 8 }}
@@ -146,6 +156,16 @@ spec:
146156
mountPath: /usr/share/opensearch-dashboards/config/{{ $path }}
147157
subPath: {{ $path }}
148158
{{- end }}
159+
{{- if .Values.extraVolumeMounts }}
160+
# Currently some extra blocks accept strings
161+
# to continue with backwards compatibility this is being kept
162+
# whilst also allowing for yaml to be specified too.
163+
{{- if eq "string" (printf "%T" .Values.extraVolumeMounts) }}
164+
{{ tpl .Values.extraVolumeMounts . | indent 10 }}
165+
{{- else }}
166+
{{ toYaml .Values.extraVolumeMounts | indent 10 }}
167+
{{- end }}
168+
{{- end }}
149169
{{- if .Values.extraContainers }}
150170
# Currently some extra blocks accept strings
151171
# to continue with backwards compatibility this is being kept

charts/opensearch-dashboards/values.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,15 @@ extraEnvs: []
4444

4545
envFrom: []
4646

47+
extraVolumes: []
48+
# - name: extras
49+
# emptyDir: {}
50+
51+
extraVolumeMounts: []
52+
# - name: extras
53+
# mountPath: /usr/share/extras
54+
# readOnly: true
55+
4756
extraInitContainers: ""
4857

4958
extraContainers: ""

0 commit comments

Comments
 (0)