Skip to content

Commit

Permalink
Merge pull request #9 from onebeyond/add-support-for-secrets-as-volumesç
Browse files Browse the repository at this point in the history
chore: Update chart version to 0.9.13 and add secret volumes support
  • Loading branch information
GentooXativa authored May 28, 2024
2 parents 1057bdb + 59f0111 commit c9567ea
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/one-beyond-service/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ 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.9.12
version: 0.9.13

# 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
Expand Down
19 changes: 19 additions & 0 deletions charts/one-beyond-service/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ spec:
ports:
{{- toYaml . | nindent 10 }}
{{- end }}
{{- if .Values.secretVolumes.enabled }}
volumeMounts:
{{- range .Values.secretVolumes.volumes }}
- name: {{ .name }}
mountPath: {{ .mountPath }}
readOnly: {{ .readOnly }}
{{- end }}
{{- end }}
{{- with .Values.env }}
env:
{{- toYaml . | nindent 10 }}
Expand Down Expand Up @@ -68,3 +76,14 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.secretVolumes.enabled }}
volumes:
{{- range .Values.secretVolumes.volumes }}
- name: {{ .name }}
secret:
secretName: {{ .secretName }}
items:
- key: {{ .secretKey }}
path: {{ .secretPath }}
{{- end }}
{{- end }}
10 changes: 10 additions & 0 deletions charts/one-beyond-service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,13 @@ nodeSelector: {}
tolerations: []

affinity: {}

secretVolumes:
enabled: true
volumes:
- name: my-secret
secretName: my-secret
secretKey: my-secret-key
secretPath: my-secret-key
mountPath: /etc/my-secret
readOnly: true

0 comments on commit c9567ea

Please sign in to comment.