From df31741f62e5524e9f2a68878fb6577465b54a24 Mon Sep 17 00:00:00 2001 From: "panyintian.fu" Date: Fri, 9 Aug 2024 11:14:27 +0800 Subject: [PATCH] [Test]fix network e2e Signed-off-by: panyintian.fu --- hack/run-network-e2e.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hack/run-network-e2e.sh b/hack/run-network-e2e.sh index 33c218300..7f736c452 100644 --- a/hack/run-network-e2e.sh +++ b/hack/run-network-e2e.sh @@ -97,6 +97,10 @@ sed -i "s/10.96.0.0\/12/10.88.0.0\/16/" "${dest_config_path}"/vars-conf-cm.yml sed -i "s/192.168.128.0/192.88.128.0/" "${dest_config_path}"/vars-conf-cm.yml ##add this line to set cilium_kube_proxy_replacement: partial, if kubespray update the cilium_kube_proxy_replacement default value to partial, this line can be deleted sed -i "$ a\ cilium_kube_proxy_replacement: partial" "${dest_config_path}"/vars-conf-cm.yml +##Switch the namespace of configmap to new_kubean_namespace +sed -i "s/namespace: kubean-system/namespace: ${new_kubean_namespace}/" "${dest_config_path}"/hosts-conf-cm.yml +sed -i "s/namespace: kubean-system/namespace: ${new_kubean_namespace}/" "${dest_config_path}"/vars-conf-cm.yml +sed -i "s/namespace: kubean-system/namespace: ${new_kubean_namespace}/" "${dest_config_path}"/kubeanCluster.yml ##set kubean operator replicas to 3 kubectl scale deployment kubean -n ${new_kubean_namespace} --replicas=3 --kubeconfig="${KUBECONFIG_FILE}"