Skip to content

Commit

Permalink
chart: additional envFrom configmap (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
filiprafaj authored Sep 10, 2024
1 parent 9456696 commit d971d8b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions charts/defguard-proxy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ spec:
envFrom:
- configMapRef:
name: {{ include "defguard-proxy.fullname" . }}-config
{{- if .Values.additionalEnvFromConfigMap }}
- configMapRef:
name: {{ .Values.additionalEnvFromConfigMap }}
{{- end }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
Expand Down
1 change: 1 addition & 0 deletions charts/defguard-proxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ serviceAccount:
annotations: {}
create: true
tolerations: []
additionalEnvFromConfigMap: ""
2 changes: 1 addition & 1 deletion charts/defguard/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: defguard
description: Defguard is an open-source enterprise wireGuard VPN with MFA and SSO
description: Defguard is an open-source enterprise wireGuard VPN with MFA and SSO

type: application
version: 0.7.7
Expand Down
4 changes: 4 additions & 0 deletions charts/defguard/templates/defguard-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ spec:
envFrom:
- configMapRef:
name: {{ include "defguard.fullname" . }}-config
{{- if .Values.additionalEnvFromConfigMap }}
- configMapRef:
name: {{ .Values.additionalEnvFromConfigMap }}
{{- end }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
Expand Down
1 change: 1 addition & 0 deletions charts/defguard/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,4 @@ defguard-proxy:
host: defguard-proxy-grpc.local
web:
host: enrollment.local
additionalEnvFromConfigMap: ""

0 comments on commit d971d8b

Please sign in to comment.