Skip to content

Commit a067af9

Browse files
author
indusridhar
committed
Fix cli lint errors
1 parent c0f91de commit a067af9

File tree

2 files changed

+7
-15
lines changed

2 files changed

+7
-15
lines changed

src/aks-preview/azext_aks_preview/_help.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2469,16 +2469,14 @@
24692469
short-summary: Rollback an agent pool to a previously used configuration.
24702470
long-summary: |
24712471
Rollback an agent pool to a previously used Kubernetes version or node image version.
2472-
If no specific versions are provided, the nodepool will be rolled back to the most recently used configuration.
2472+
At least one of --kubernetes-version or --node-image-version must be specified.
24732473
parameters:
2474-
- name: --kubernetes-version
2474+
- name: --kubernetes-version -k
24752475
type: string
24762476
short-summary: Target Kubernetes version for rollback.
2477-
long-summary: If not specified, uses the most recent available Kubernetes version.
24782477
- name: --node-image-version
24792478
type: string
24802479
short-summary: Target node image version for rollback.
2481-
long-summary: If not specified, uses the most recent available node image version.
24822480
- name: --aks-custom-headers
24832481
type: string
24842482
short-summary: Send custom headers. When specified, format should be Key1=Value1,Key2=Value2.
@@ -2489,15 +2487,15 @@
24892487
type: string
24902488
short-summary: Set to '*' to allow a new resource to be created, but to prevent updating an existing resource.
24912489
examples:
2492-
- name: Rollback a nodepool to the most recent configuration.
2493-
text: az aks nodepool rollback --resource-group MyResourceGroup --cluster-name MyManagedCluster --nodepool-name MyNodePool
2494-
crafted: true
24952490
- name: Rollback a nodepool to a specific Kubernetes version.
24962491
text: az aks nodepool rollback --resource-group MyResourceGroup --cluster-name MyManagedCluster --nodepool-name MyNodePool --kubernetes-version 1.28.5
24972492
crafted: true
24982493
- name: Rollback a nodepool to specific Kubernetes and node image versions.
24992494
text: az aks nodepool rollback --resource-group MyResourceGroup --cluster-name MyManagedCluster --nodepool-name MyNodePool --kubernetes-version 1.28.5 --node-image-version AKSUbuntu-1804gen2containerd-2024.01.15
25002495
crafted: true
2496+
- name: Rollback a nodepool to a specific node image version.
2497+
text: az aks nodepool rollback --resource-group MyResourceGroup --cluster-name MyManagedCluster --nodepool-name MyNodePool --node-image-version AKSUbuntu-1804gen2containerd-2024.01.15
2498+
crafted: true
25012499
"""
25022500

25032501
helps['aks nodepool stop'] = """

src/aks-preview/azext_aks_preview/_params.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2186,14 +2186,8 @@ def load_arguments(self, _):
21862186
pass # Uses common nodepool parameters
21872187

21882188
with self.argument_context("aks nodepool rollback") as c:
2189-
c.argument(
2190-
"kubernetes_version",
2191-
help="Target Kubernetes version for rollback. If not specified, uses the most recent available version."
2192-
)
2193-
c.argument(
2194-
"node_image_version",
2195-
help="Target node image version for rollback. If not specified, uses the most recent available version."
2196-
)
2189+
c.argument("kubernetes_version")
2190+
c.argument("node_image_version")
21972191
c.argument("aks_custom_headers", nargs="*")
21982192
c.argument("if_match")
21992193
c.argument("if_none_match")

0 commit comments

Comments
 (0)