Skip to content

Commit 0d16cef

Browse files
authored
adding autoupgrader node-image channel (Azure#2968)
1 parent edf09b1 commit 0d16cef

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

src/aks-preview/azext_aks_preview/_consts.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
CONST_RAPID_UPGRADE_CHANNEL = "rapid"
1717
CONST_STABLE_UPGRADE_CHANNEL = "stable"
1818
CONST_PATCH_UPGRADE_CHANNEL = "patch"
19+
CONST_NODE_IMAGE_UPGRADE_CHANNEL = "node-image"
1920
CONST_NONE_UPGRADE_CHANNEL = "none"
2021

2122
CONST_HTTP_APPLICATION_ROUTING_ADDON_NAME = "httpApplicationRouting"

src/aks-preview/azext_aks_preview/_help.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@
288288
short-summary: Enable SGX quote helper for confcom addon.
289289
- name: --auto-upgrade-channel
290290
type: string
291-
short-summary: Specify the upgrade channel for autoupgrade. It could be rapid, stable, patch or none, none means disable autoupgrade.
291+
short-summary: Specify the upgrade channel for autoupgrade. It could be rapid, stable, patch, node-image or none, none means disable autoupgrade.
292292
- name: --kubelet-config
293293
type: string
294294
short-summary: Kubelet configurations for agent nodes.
@@ -459,7 +459,7 @@
459459
short-summary: Send custom headers. When specified, format should be Key1=Value1,Key2=Value2
460460
- name: --auto-upgrade-channel
461461
type: string
462-
short-summary: Specify the upgrade channel for autoupgrade. It could be rapid, stable, patch or none, none means disable autoupgrade.
462+
short-summary: Specify the upgrade channel for autoupgrade. It could be rapid, stable, patch, node-image or none, none means disable autoupgrade.
463463
- name: --enable-managed-identity
464464
type: bool
465465
short-summary: (PREVIEW) Update current cluster to managed identity to manage cluster resource group.

src/aks-preview/azext_aks_preview/_params.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
CONST_SPOT_EVICTION_POLICY_DELETE, CONST_SPOT_EVICTION_POLICY_DEALLOCATE, \
3030
CONST_NODEPOOL_MODE_SYSTEM, CONST_NODEPOOL_MODE_USER, \
3131
CONST_OS_DISK_TYPE_MANAGED, CONST_OS_DISK_TYPE_EPHEMERAL, \
32-
CONST_RAPID_UPGRADE_CHANNEL, CONST_STABLE_UPGRADE_CHANNEL, CONST_PATCH_UPGRADE_CHANNEL, CONST_NONE_UPGRADE_CHANNEL
32+
CONST_RAPID_UPGRADE_CHANNEL, CONST_STABLE_UPGRADE_CHANNEL, CONST_PATCH_UPGRADE_CHANNEL, CONST_NODE_IMAGE_UPGRADE_CHANNEL, CONST_NONE_UPGRADE_CHANNEL
3333

3434

3535
def load_arguments(self, _):
@@ -112,7 +112,7 @@ def load_arguments(self, _):
112112
c.argument('enable_managed_identity', action='store_true')
113113
c.argument('assign_identity', type=str, validator=validate_assign_identity)
114114
c.argument('enable_sgxquotehelper', action='store_true')
115-
c.argument('auto_upgrade_channel', arg_type=get_enum_type([CONST_RAPID_UPGRADE_CHANNEL, CONST_STABLE_UPGRADE_CHANNEL, CONST_PATCH_UPGRADE_CHANNEL, CONST_NONE_UPGRADE_CHANNEL]))
115+
c.argument('auto_upgrade_channel', arg_type=get_enum_type([CONST_RAPID_UPGRADE_CHANNEL, CONST_STABLE_UPGRADE_CHANNEL, CONST_PATCH_UPGRADE_CHANNEL, CONST_NODE_IMAGE_UPGRADE_CHANNEL, CONST_NONE_UPGRADE_CHANNEL]))
116116
c.argument('kubelet_config', type=str)
117117
c.argument('linux_os_config', type=str)
118118
c.argument('enable_pod_identity', action='store_true')
@@ -146,7 +146,7 @@ def load_arguments(self, _):
146146
c.argument('attach_acr', acr_arg_type, validator=validate_acr)
147147
c.argument('detach_acr', acr_arg_type, validator=validate_acr)
148148
c.argument('aks_custom_headers')
149-
c.argument('auto_upgrade_channel', arg_type=get_enum_type([CONST_RAPID_UPGRADE_CHANNEL, CONST_STABLE_UPGRADE_CHANNEL, CONST_PATCH_UPGRADE_CHANNEL, CONST_NONE_UPGRADE_CHANNEL]))
149+
c.argument('auto_upgrade_channel', arg_type=get_enum_type([CONST_RAPID_UPGRADE_CHANNEL, CONST_STABLE_UPGRADE_CHANNEL, CONST_PATCH_UPGRADE_CHANNEL, CONST_NODE_IMAGE_UPGRADE_CHANNEL, CONST_NONE_UPGRADE_CHANNEL]))
150150
c.argument('enable_managed_identity', action='store_true')
151151
c.argument('assign_identity', type=str, validator=validate_assign_identity)
152152
c.argument('enable_pod_identity', action='store_true')

0 commit comments

Comments
 (0)