fix vpn rendering

This commit is contained in:
Stavros kois
2023-02-27 23:23:45 +02:00
parent df7a725c42
commit 05d28db62c
4 changed files with 6 additions and 8 deletions

View File

@@ -36,7 +36,6 @@ workload:
type: http
port: "{{ .Values.service.main.ports.main.port }}"
args:
- --port
- '8080'
@@ -53,7 +52,7 @@ addons:
# @default -- See values.yaml
vpn:
# -- Specify the VPN type. Valid options are disabled, gluetun or tailscale
type: tailscale
type: gluetun
# -- All variables specified here will be added to the vpn sidecar container
# See the documentation of the VPN image for all config values

View File

@@ -36,7 +36,6 @@ workload:
type: http
port: "{{ .Values.service.main.ports.main.port }}"
args:
- --port
- '8080'

View File

@@ -8,10 +8,10 @@ probes:
{{- if $.Values.addons.vpn.livenessProbe }}
liveness:
{{- toYaml . | nindent 2 }}
{{- else -}}
{{- else }}
liveness:
enabled: false
{{- end -}}
{{- end }}
readiness:
enabled: false
startup:
@@ -27,7 +27,7 @@ securityContext:
{{- with $.Values.addons.vpn.env }}
env:
{{- . | toYaml | nindent 2 }}
{{- end }}
{{- end -}}
{{- range $envList := $.Values.addons.vpn.envList -}}
{{- if and $envList.name $envList.value }}

View File

@@ -8,10 +8,10 @@ probes:
{{- if $.Values.addons.vpn.livenessProbe }}
liveness:
{{- toYaml . | nindent 2 }}
{{- else -}}
{{- else }}
liveness:
enabled: false
{{- end -}}
{{- end }}
readiness:
enabled: false
startup: