Skip to content

Commit cb5d3a0

Browse files
authored
helm: add extraVolumes and extraVolumeMounts to values (#4068)
1 parent 9612ec3 commit cb5d3a0

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

charts/nuts-node/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: 0.0.7
18+
version: 0.0.8
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/nuts-node/templates/deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ spec:
3535
- name: nuts-data-pv
3636
persistentVolumeClaim:
3737
claimName: {{ .Release.Namespace }}-{{ .Release.Name }}-data-pvc
38+
{{- if .Values.extraVolumes }}
39+
{{- toYaml .Values.extraVolumes | nindent 8 }}
40+
{{- end }}
3841
{{- with .Values.imagePullSecrets }}
3942
imagePullSecrets:
4043
{{- toYaml . | nindent 8 }}
@@ -84,6 +87,9 @@ spec:
8487
readOnly: true
8588
- name: nuts-data-pv
8689
mountPath: /opt/nuts/data
90+
{{- if .Values.extraVolumeMounts }}
91+
{{ toYaml .Values.extraVolumeMounts | nindent 12 }}
92+
{{- end }}
8793
ports:
8894
- name: http-internal
8995
containerPort: {{ .Values.service.internal.internalPort | default 8081 }}

charts/nuts-node/values.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,18 @@ affinity: {}
116116
# existingSecret: nuts-node-redis-auth
117117
# existingSecretPasswordKey: redis-password
118118

119+
extraVolumes: []
120+
# extraVolumes:
121+
# - name: discovery-services
122+
# configMap:
123+
# name: nuts-discovery-services
124+
125+
extraVolumeMounts: []
126+
# extraVolumeMounts:
127+
# - name: discovery-services
128+
# mountPath: /nuts/discovery
129+
# readOnly: true
130+
119131
nuts:
120132
config:
121133
strictmode: true

0 commit comments

Comments
 (0)