Skip to content

Commit

Permalink
add servicemesh configuration migration
Browse files Browse the repository at this point in the history
Signed-off-by: pixiake <guofeng@yunify.com>
  • Loading branch information
pixiake authored and ks-ci-bot committed May 30, 2022
1 parent 00d6640 commit 05bba84
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions controller/installRunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 05bba84

Please sign in to comment.