mirror of
https://github.com/submariner-io/submariner-charts.git
synced 2026-11-20 22:27:40 +00:00
Omit ceIPSecPSK when no IPsec PSK is set
With the default ipsec.psk of "" and no pskSecret, the template rendered "ceIPSecPSK:" with no value, which is null. The Submariner CRD types the field as a string, so the install fails with 'spec.ceIPSecPSK in body must be of type string: "null"'. This hits anyone using the vxlan cable driver, which needs no PSK. Only render ceIPSecPSK when a PSK is given, and quote it so that a numeric PSK is not turned into an integer. Fixes #753 Signed-off-by: Lucas Barros <lucasbarros.kam@gmail.com>
This commit is contained in:
1 parent
c43953139c
commit
55745a2ea6
1 file changed
+2
-2
@@ -20,8 +20,8 @@ spec:
|
|||||||
ceIPSecNATTPort: {{ .Values.ipsec.natPort }}
|
ceIPSecNATTPort: {{ .Values.ipsec.natPort }}
|
||||||
{{- if .Values.ipsec.pskSecret }}
|
{{- if .Values.ipsec.pskSecret }}
|
||||||
ceIPSecPSKSecret: {{ .Values.ipsec.pskSecret }}
|
ceIPSecPSKSecret: {{ .Values.ipsec.pskSecret }}
|
||||||
{{- else }}
|
{{- else if .Values.ipsec.psk }}
|
||||||
ceIPSecPSK: {{ .Values.ipsec.psk }}
|
ceIPSecPSK: {{ .Values.ipsec.psk | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
clusterCIDR: "{{ .Values.submariner.clusterCidr }}"
|
clusterCIDR: "{{ .Values.submariner.clusterCidr }}"
|
||||||
clusterID: {{ .Values.submariner.clusterId }}
|
clusterID: {{ .Values.submariner.clusterId }}
|
||||||
|
|||||||
Reference in new issue
Block a user