From c3e971a014ddc2a0a2ab5dcf73dd6c1923d71758 Mon Sep 17 00:00:00 2001 From: Jannik Zinkl Date: Fri, 11 Mar 2022 10:34:04 +0100 Subject: [PATCH] feat: enabling dynamic secret mount --- charts/strapi/Chart.yaml | 2 +- charts/strapi/templates/deployment.yaml | 4 ++++ charts/strapi/values.yaml | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/charts/strapi/Chart.yaml b/charts/strapi/Chart.yaml index 204fec6..2277472 100644 --- a/charts/strapi/Chart.yaml +++ b/charts/strapi/Chart.yaml @@ -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.1.29 +version: 0.1.30 # 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 diff --git a/charts/strapi/templates/deployment.yaml b/charts/strapi/templates/deployment.yaml index a94a4d7..b875ded 100644 --- a/charts/strapi/templates/deployment.yaml +++ b/charts/strapi/templates/deployment.yaml @@ -61,6 +61,10 @@ spec: envFrom: - secretRef: name: {{ include "strapi.fullname" . }} + {{- range .Values.additionalSecretMounts }} + - secretRef: + name: {{ . }} + {{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/charts/strapi/values.yaml b/charts/strapi/values.yaml index bc61b4f..74a846d 100644 --- a/charts/strapi/values.yaml +++ b/charts/strapi/values.yaml @@ -114,6 +114,9 @@ tolerations: [] affinity: {} +# Just add here secrets, that you want to get mounted +additionalSecretMounts: {} + # You can set a database URL here if you don't want to use the included DB secrets: databaseUrl: "postgresql://{{ .Release.Name }}-postgresql"