Skip to content

Commit

Permalink
Fix Go 1.14 templating (helm#22795)
Browse files Browse the repository at this point in the history
Signed-off-by: Gorka Maiztegi <gmaiztegi@reviewpro.com>
  • Loading branch information
gmaiztegi authored Jun 15, 2020
1 parent ac00d85 commit 529e449
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion stable/openvpn/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: A Helm chart to install an openvpn server inside a kubernetes clust
generation is also part of the deployment, and this chart will generate client keys
as needed.
name: openvpn
version: 4.2.2
version: 4.2.3
appVersion: 1.1.0
maintainers:
- name: jasongwartz
Expand Down
6 changes: 3 additions & 3 deletions stable/openvpn/templates/config-openvpn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ data:
#!/bin/bash
EASY_RSA_LOC="/etc/openvpn/certs"
cd $EASY_RSA_LOC
./easyrsa revoke $1
./easyrsa revoke $1
./easyrsa gen-crl
cp ${EASY_RSA_LOC}/pki/crl.pem ${EASY_RSA_LOC}
chmod 644 ${EASY_RSA_LOC}/crl.pem
Expand Down Expand Up @@ -209,10 +209,10 @@ data:
{{ if .Values.openvpn.DEFAULT_ROUTE_ENABLED }}
push "route NETWORK NETMASK"
{{ end }}
{{ if (.Values.openvpn.OVPN_K8S_POD_NETWORK) (.Values.openvpn.OVPN_K8S_POD_SUBNET) }}
{{ if and (.Values.openvpn.OVPN_K8S_POD_NETWORK) (.Values.openvpn.OVPN_K8S_POD_SUBNET) }}
push "route {{ .Values.openvpn.OVPN_K8S_POD_NETWORK }} {{ .Values.openvpn.OVPN_K8S_POD_SUBNET }}"
{{ end }}
{{ if (.Values.openvpn.OVPN_K8S_SVC_NETWORK) (.Values.openvpn.OVPN_K8S_SVC_SUBNET) }}
{{ if and (.Values.openvpn.OVPN_K8S_SVC_NETWORK) (.Values.openvpn.OVPN_K8S_SVC_SUBNET) }}
push "route {{ .Values.openvpn.OVPN_K8S_SVC_NETWORK }} {{ .Values.openvpn.OVPN_K8S_SVC_SUBNET }}"
{{ end }}

Expand Down

0 comments on commit 529e449

Please sign in to comment.