Skip to content

Commit

Permalink
Merge pull request #2005 from ks-ci-bot/cherry-pick-2004-to-release-3.3
Browse files Browse the repository at this point in the history
[release-3.3] add servicemesh configuration migration
  • Loading branch information
pixiake committed May 30, 2022
2 parents 00d6640 + 05bba84 commit 8402e80
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 8402e80

Please sign in to comment.