Skip to content

Commit 42b2e87

Browse files
authored
[AKS] az aks upgrade: Update user confirmation prompt of --control-plane-only parameter (#32404)
1 parent 37b2289 commit 42b2e87

File tree

1 file changed

+5
-3
lines changed
  • src/azure-cli/azure/cli/command_modules/acs

1 file changed

+5
-3
lines changed

src/azure-cli/azure/cli/command_modules/acs/custom.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1280,14 +1280,16 @@ def aks_upgrade(cmd,
12801280
upgrade_all = True
12811281
else:
12821282
if not control_plane_only:
1283-
msg = ("Since control-plane-only argument is not specified, this will upgrade the control plane "
1283+
msg = ("Since --control-plane-only parameter is not specified, this will upgrade the control plane "
12841284
"AND all nodepools to version {}. Continue?").format(instance.kubernetes_version)
12851285
if not yes and not prompt_y_n(msg, default="n"):
12861286
return None
12871287
upgrade_all = True
12881288
else:
1289-
msg = ("Since control-plane-only argument is specified, this will upgrade only the control plane to {}. "
1290-
"Node pool will not change. Continue?").format(instance.kubernetes_version)
1289+
msg = ("Since --control-plane-only parameter is specified, this will upgrade only the kubernetes version of the control plane to {}. "
1290+
"Kubernetes versions of the node pools will remain unchanged, "
1291+
"but node image version may be upgraded if there has been cluster config change that requires VM reimage. "
1292+
"Continue?").format(instance.kubernetes_version)
12911293
if not yes and not prompt_y_n(msg, default="n"):
12921294
return None
12931295

0 commit comments

Comments
 (0)