Skip to content

Commit

Permalink
secret env refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Viktor B authored and Viktor B committed Nov 18, 2022
1 parent 06ceae5 commit 3c3800a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 20 deletions.
4 changes: 2 additions & 2 deletions charts/app-mendix/templates/deployment-leader.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ spec:
- name: {{ .name | quote}}
value: {{ .value | quote}}
{{- end }}
{{- if .Values.secretEnv }}
{{- if .Values.secretName }}
envFrom:
- secretRef:
name: {{ template "app-mendix.fullname" $ }}
name: {{ .Values.secretName }}
{{- end }}
{{- if .Values.readinessProbe.enabled }}
readinessProbe:
Expand Down
4 changes: 2 additions & 2 deletions charts/app-mendix/templates/deployment-slave.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ spec:
- name: {{ .name | quote}}
value: {{ .value | quote}}
{{- end }}
{{- if .Values.secretEnv }}
{{- if .Values.secretName }}
envFrom:
- secretRef:
name: {{ template "app-mendix.fullname" $ }}
name: {{ .Values.secretName }}
{{- end }}
{{- if .Values.readinessProbe.enabled }}
readinessProbe:
Expand Down
14 changes: 0 additions & 14 deletions charts/app-mendix/templates/secret.yaml

This file was deleted.

8 changes: 6 additions & 2 deletions charts/app-mendix/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ env: []
# value: "test-mx-app"
# - name: S3_ENDPOINT
# value: "http://minio:9000"

secretEnv: []
# - name: LICENSE_ID
# value: xxx
# - name: LICENSE_KEY
Expand All @@ -58,6 +56,12 @@ secretEnv: []
# - name: S3_SECRET_ACCESS_KEY
# value: "accesskey"

# Secret name with mendix application runtime variables. Will be loaded as pod environment variables
# Example data
# data:
# ADMIN_PASSWORD: SGVsbG8wMTIzY2xlYXIK (base64)
secretName: ""

nodeSelector: {}

tolerations: []
Expand Down

0 comments on commit 3c3800a

Please sign in to comment.