Compare commits

..
Author SHA1 Message Date
Lucas Barros 55745a2ea6 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>
2026-11-04 10:53:14 -03:00
2 changed files with 4 additions and 4 deletions

No files matched your search

+2 -2
View File
@@ -46,12 +46,12 @@ jobs:
version: v3.6.0
- name: Set up Python
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97
with:
python-version: '3.13.x'
- name: Set up helm/chart-testing
uses: helm/chart-testing-action@720270857a28afd41e2426521a7801db09e9b510
uses: helm/chart-testing-action@6ec842c01de15ebb84c8627d2744a0c2f2755c9f
- name: Set up local helm repo
run: make local-helm-repo
@@ -20,8 +20,8 @@ spec:
ceIPSecNATTPort: {{ .Values.ipsec.natPort }}
{{- if .Values.ipsec.pskSecret }}
ceIPSecPSKSecret: {{ .Values.ipsec.pskSecret }}
{{- else }}
ceIPSecPSK: {{ .Values.ipsec.psk }}
{{- else if .Values.ipsec.psk }}
ceIPSecPSK: {{ .Values.ipsec.psk | quote }}
{{- end }}
clusterCIDR: "{{ .Values.submariner.clusterCidr }}"
clusterID: {{ .Values.submariner.clusterId }}