From 55745a2ea61fb9be9be447e067ff9442bd3ad59f Mon Sep 17 00:00:00 2001 From: Lucas Barros Date: Wed, 4 Nov 2026 10:53:14 -0300 Subject: [PATCH] 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 --- submariner-operator/templates/submariner.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/submariner-operator/templates/submariner.yaml b/submariner-operator/templates/submariner.yaml index 77daa16..88073e0 100644 --- a/submariner-operator/templates/submariner.yaml +++ b/submariner-operator/templates/submariner.yaml @@ -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 }}