From d7b3ab62045ece2f4b95078a1d01d5d3c27e9fd6 Mon Sep 17 00:00:00 2001 From: Miguel Angel Ajo Date: Wed, 24 Feb 2021 14:29:16 +0100 Subject: [PATCH] Add globalCidr mappings to the submariner template also includes the questions.yaml which is UI. Signed-off-by: Miguel Angel Ajo --- submariner-operator/questions.yml | 7 +++++++ submariner-operator/templates/submariner.yaml | 1 + 2 files changed, 8 insertions(+) diff --git a/submariner-operator/questions.yml b/submariner-operator/questions.yml index 07700ed..da77e0f 100644 --- a/submariner-operator/questions.yml +++ b/submariner-operator/questions.yml @@ -92,6 +92,13 @@ questions: label: "Service CIDR" group: "CIDR Configuration" required: true +- variable: submariner.globalCidr + default: "" + description: "Enter the globalnet CIDR (i.e. 169.254.1.0/24) for this cluster if using globalnet" + type: string + label: "Globalnet CIDR" + group: "CIDR Configuration" + required: false - variable: submariner.natEnabled type: boolean default: false diff --git a/submariner-operator/templates/submariner.yaml b/submariner-operator/templates/submariner.yaml index 3ea35a1..b975154 100644 --- a/submariner-operator/templates/submariner.yaml +++ b/submariner-operator/templates/submariner.yaml @@ -22,4 +22,5 @@ spec: repository: {{ .Values.submariner.images.repository }} version: {{ .Values.submariner.images.tag }} serviceCIDR: "{{ .Values.submariner.serviceCidr }}" + globalCIDR: "{{ .Values.submariner.globalCidr }}" serviceDiscoveryEnabled: {{ .Values.submariner.serviceDiscovery }}