Skip to content

Commit

Permalink
fix: vpn en vars in values
Browse files Browse the repository at this point in the history
  • Loading branch information
henrywhitaker3 committed Jun 1, 2024
1 parent ec4b727 commit b55fee1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,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: 1.3.16
version: 1.3.17
# 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
# follow Semantic Versioning. They should reflect the version the application is using.
Expand Down
14 changes: 4 additions & 10 deletions chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,7 @@ spec:
initContainers:
{{- if .Values.vpn.enabled }}
- name: wg-configer
image: "{{ .Values.vpn.image.repository }}:{{ .Values.vpn.image.tag | default .Chart.AppVersion }}"
env:
- name: PUID
value: "911"
- name: PGID
value: "911"
image: alpine:latest
volumeMounts:
- name: wg-config-raw
mountPath: /wg
Expand Down Expand Up @@ -141,11 +136,10 @@ spec:
imagePullPolicy: {{ .Values.vpn.image.pullPolicy }}
securityContext:
{{- toYaml .Values.vpn.securityContext | nindent 12 }}
{{- if gt (len .Values.vpn.env) 0 }}
env:
- name: PUID
value: "911"
- name: PGID
value: "911"
{{- toYaml .Values.vpn.env | nindent 12 }}
{{- end }}
livenessProbe:
exec:
command:
Expand Down
6 changes: 6 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,12 @@ vpn:
capabilities: {add: ['NET_ADMIN']}
privileged: true

env:
- name: PUID
value: "911"
- name: PGID
value: "911"

# Scripts to run to copy over the wirguard config
script: |
echo Copying config file to shared volume
Expand Down

0 comments on commit b55fee1

Please sign in to comment.