Skip to content

Commit

Permalink
add possibility to insert additional env
Browse files Browse the repository at this point in the history
  • Loading branch information
MickaelCa committed Oct 9, 2021
1 parent 3a4a15f commit be234fc
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deploy/helm/wg-access-server/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v2
appVersion: v0.4.6
description: A Wireguard VPN Access Server
name: wg-access-server
version: v0.4.6
version: v0.4.7
3 changes: 3 additions & 0 deletions deploy/helm/wg-access-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ spec:
containerPort: 51820
protocol: UDP
env:
{{- with .Values.additionalEnv }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- if .Values.wireguard.config.privateKey }}
- name: WG_WIREGUARD_PRIVATE_KEY
valueFrom:
Expand Down
19 changes: 18 additions & 1 deletion deploy/helm/wg-access-server/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# wg-access-server config
config: {}
config: { }

web:
config:
Expand All @@ -14,6 +14,23 @@ wireguard:
service:
type: ClusterIP

additionalEnv: []
# - name: WG_WIREGUARD_PRIVATE_KEY
# valueFrom:
# secretKeyRef:
# name: "externalSecret"
# key: privateKey
# - name: WG_ADMIN_USERNAME
# valueFrom:
# secretKeyRef:
# name: "externalSecret"
# key: adminUsername
# - name: WG_ADMIN_PASSWORD
# valueFrom:
# secretKeyRef:
# name: externalSecret
# key: adminPassword

persistence:
enabled: false
## Persistent Volume Storage Class
Expand Down

0 comments on commit be234fc

Please sign in to comment.