Skip to content

Commit 14d095b

Browse files
committed
chore: deployment - flexible runtime configuration
1 parent 13d7dcd commit 14d095b

3 files changed

Lines changed: 27 additions & 4 deletions

File tree

charts/deployment/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ apiVersion: v1
22
description: A Helm chart for Kubernetes
33
# name can only be lowercase. It is used in the templates.
44
name: deployment
5-
version: 3.9.0
5+
version: 3.10.0

charts/deployment/templates/deployment.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ spec:
100100
mountPath: {{ $mount.mountPath }}
101101
{{- end }}
102102
- name: app-secrets-volume
103-
mountPath: /mnt/app-secrets
103+
mountPath: {{ .Values.appSecrets.mountPath }}
104104
readOnly: true
105105
{{- if .Values.startup.enabled}}
106106
startupProbe:
@@ -147,5 +147,10 @@ spec:
147147
{{- end }}
148148
{{- end }}
149149
- name: app-secrets-volume
150-
secret:
151-
secretName: {{ template "fullname" . }}-secrets
150+
projected:
151+
sources:
152+
- secret:
153+
name: {{ template "fullname" . }}-secrets
154+
{{- with .Values.appSecrets.additionalSources }}
155+
{{- toYaml . | nindent 14 }}
156+
{{- end }}

charts/deployment/values.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,24 @@ volumes:
9191
secret:
9292
secretName: accesstoken
9393

94+
appSecrets:
95+
mountPath: /mnt/app-secrets
96+
additionalSources: []
97+
# Additional projected volume sources merged into appSecrets.mountPath.
98+
# Example:
99+
# additionalSources:
100+
# - configMap:
101+
# name: apps-runtime-common-config
102+
# items:
103+
# - key: runtime-common.json
104+
# path: runtime-common.json
105+
# - secret:
106+
# name: apps-runtime-common-secrets
107+
# optional: true
108+
# items:
109+
# - key: runtime-common-secrets.json
110+
# path: runtime-common-secrets.json
111+
94112
startup:
95113
enabled: false
96114
path: /health

0 commit comments

Comments
 (0)