From 05bba848119616b0b83c3dc3cefd83afae4b6452 Mon Sep 17 00:00:00 2001 From: pixiake Date: Mon, 30 May 2022 14:11:03 +0800 Subject: [PATCH] add servicemesh configuration migration Signed-off-by: pixiake --- controller/installRunner.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/controller/installRunner.py b/controller/installRunner.py index 8af9434b5..a047bd921 100755 --- a/controller/installRunner.py +++ b/controller/installRunner.py @@ -599,6 +599,29 @@ def generate_new_cluster_configuration(api): } del cluster_configuration_spec["networkpolicy"] + if "terminal" not in cluster_configuration_spec: + upgrade_flag = True + cluster_configuration_spec["terminal"] = { + "timeout": 600 + } + + # add servicemesh configuration migration + if "servicemesh" in cluster_configuration_spec and "istio" not in cluster_configuration_spec["servicemesh"]: + upgrade_flag = True + cluster_configuration_spec["servicemesh"]["istio"] = { + "components": { + "ingressGateways": [ + { + "name": "istio-ingressgateway", + "enabled": False + } + ], + "cni": { + "enabled": False + } + } + } + # add edgeruntime configuration migration if "kubeedge" in cluster_configuration_spec: upgrade_flag = True