From ccf7f695680b70fc62ab2d2c5094f9f00fd15c0c Mon Sep 17 00:00:00 2001 From: Le Yao Date: Fri, 24 Dec 2021 07:44:34 +0000 Subject: [PATCH] Fix the cnf pod restart issue Signed-off-by: Le Yao Change-Id: Ieb3f5b6dd66bb38ed79656b767c07b614061d9cf --- platform/deployment/examples/cnfservice.yaml | 2 +- platform/deployment/helm/sdewan_cnf/templates/cm.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/deployment/examples/cnfservice.yaml b/platform/deployment/examples/cnfservice.yaml index e2671a4..5619106 100644 --- a/platform/deployment/examples/cnfservice.yaml +++ b/platform/deployment/examples/cnfservice.yaml @@ -3,7 +3,7 @@ kind: CNFService metadata: name: cnfservice-sample labels: - sdewanPurpose: sdewan-safe + sdewanPurpose: base spec: fullname: nginx.default.svc.cluster.local port: "8866" diff --git a/platform/deployment/helm/sdewan_cnf/templates/cm.yaml b/platform/deployment/helm/sdewan_cnf/templates/cm.yaml index 5616207..e652e59 100644 --- a/platform/deployment/helm/sdewan_cnf/templates/cm.yaml +++ b/platform/deployment/helm/sdewan_cnf/templates/cm.yaml @@ -27,7 +27,6 @@ data: option local_source 'lan' EOF - defaultip=$(grep "\podIP\b" /tmp/podinfo/annotations | cut -d/ -f2 | cut -d'"' -f2) providerip=$(echo {{ .Values.providerCIDR }} | cut -d/ -f1) sep="." suf="0" @@ -73,6 +72,7 @@ data: /etc/init.d/dropbear start /etc/init.d/mwan3 restart /etc/init.d/firewall restart + defaultip=$(grep "\podIP\b" /tmp/podinfo/annotations | cut -d/ -f2 | cut -d'"' -f2) for net in $(echo -e $networks | jq -c ".interface[]") do interface=$(echo $net | jq -r .interface) -- 2.16.6