Skip to content

Commit

Permalink
feat: enabling dynamic secret mount
Browse files Browse the repository at this point in the history
  • Loading branch information
JannikZed committed Mar 11, 2022
1 parent e9cdfd8 commit c3e971a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/strapi/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.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
Expand Down
4 changes: 4 additions & 0 deletions charts/strapi/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ spec:
envFrom:
- secretRef:
name: {{ include "strapi.fullname" . }}
{{- range .Values.additionalSecretMounts }}
- secretRef:
name: {{ . }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/strapi/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c3e971a

Please sign in to comment.