Skip to content

Commit c9567ea

Browse files
authored
Merge pull request #9 from onebeyond/add-support-for-secrets-as-volumesç
chore: Update chart version to 0.9.13 and add secret volumes support
2 parents 1057bdb + 59f0111 commit c9567ea

File tree

3 files changed

+30
-1
lines changed

3 files changed

+30
-1
lines changed

charts/one-beyond-service/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.9.12
18+
version: 0.9.13
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/one-beyond-service/templates/deployment.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ spec:
3737
ports:
3838
{{- toYaml . | nindent 10 }}
3939
{{- end }}
40+
{{- if .Values.secretVolumes.enabled }}
41+
volumeMounts:
42+
{{- range .Values.secretVolumes.volumes }}
43+
- name: {{ .name }}
44+
mountPath: {{ .mountPath }}
45+
readOnly: {{ .readOnly }}
46+
{{- end }}
47+
{{- end }}
4048
{{- with .Values.env }}
4149
env:
4250
{{- toYaml . | nindent 10 }}
@@ -68,3 +76,14 @@ spec:
6876
tolerations:
6977
{{- toYaml . | nindent 8 }}
7078
{{- end }}
79+
{{- if .Values.secretVolumes.enabled }}
80+
volumes:
81+
{{- range .Values.secretVolumes.volumes }}
82+
- name: {{ .name }}
83+
secret:
84+
secretName: {{ .secretName }}
85+
items:
86+
- key: {{ .secretKey }}
87+
path: {{ .secretPath }}
88+
{{- end }}
89+
{{- end }}

charts/one-beyond-service/values.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,3 +119,13 @@ nodeSelector: {}
119119
tolerations: []
120120

121121
affinity: {}
122+
123+
secretVolumes:
124+
enabled: true
125+
volumes:
126+
- name: my-secret
127+
secretName: my-secret
128+
secretKey: my-secret-key
129+
secretPath: my-secret-key
130+
mountPath: /etc/my-secret
131+
readOnly: true

0 commit comments

Comments
 (0)