|
126 | 126 | CONST_WORKLOAD_RUNTIME_WASM_WASI, |
127 | 127 | CONST_NODE_PROVISIONING_MODE_MANUAL, |
128 | 128 | CONST_NODE_PROVISIONING_MODE_AUTO, |
| 129 | + CONST_NODE_PROVISIONING_DEFAULT_POOLS_AUTO, |
| 130 | + CONST_NODE_PROVISIONING_DEFAULT_POOLS_NONE, |
129 | 131 | CONST_MANAGED_CLUSTER_SKU_NAME_BASE, |
130 | 132 | CONST_MANAGED_CLUSTER_SKU_NAME_AUTOMATIC, |
131 | 133 | CONST_SSH_ACCESS_LOCALUSER, |
|
456 | 458 | CONST_EPHEMERAL_NVME_PERF_TIER_STANDARD, |
457 | 459 | ] |
458 | 460 |
|
459 | | -# consts for guardrails level |
460 | 461 | node_provisioning_modes = [ |
461 | 462 | CONST_NODE_PROVISIONING_MODE_MANUAL, |
462 | 463 | CONST_NODE_PROVISIONING_MODE_AUTO, |
463 | 464 | ] |
464 | 465 |
|
| 466 | +node_provisioning_default_pools = [ |
| 467 | + CONST_NODE_PROVISIONING_DEFAULT_POOLS_AUTO, |
| 468 | + CONST_NODE_PROVISIONING_DEFAULT_POOLS_NONE, |
| 469 | +] |
| 470 | + |
465 | 471 | ssh_accesses = [ |
466 | 472 | CONST_SSH_ACCESS_LOCALUSER, |
467 | 473 | CONST_SSH_ACCESS_DISABLED, |
@@ -1016,6 +1022,20 @@ def load_arguments(self, _): |
1016 | 1022 | 'For more information on "Auto" mode see aka.ms/aks/nap.' |
1017 | 1023 | ) |
1018 | 1024 | ) |
| 1025 | + c.argument( |
| 1026 | + "node_provisioning_default_pools", |
| 1027 | + is_preview=True, |
| 1028 | + arg_type=get_enum_type(node_provisioning_default_pools), |
| 1029 | + help=( |
| 1030 | + 'The set of default Karpenter NodePools configured for node provisioning. ' |
| 1031 | + 'Valid values are "Auto" and "None". Auto: A standard set of Karpenter NodePools are provisioned. ' |
| 1032 | + 'None: No Karpenter NodePools are provisioned. ' |
| 1033 | + 'WARNING: Changing this from Auto to None on an existing cluster will cause the default Karpenter ' |
| 1034 | + 'NodePools to be deleted, which will in turn drain and delete the nodes associated with those pools. ' |
| 1035 | + 'It is strongly recommended to not do this unless there are idle nodes ready to take the pods evicted ' |
| 1036 | + 'by that action.' |
| 1037 | + ) |
| 1038 | + ) |
1019 | 1039 | # in creation scenario, use "localuser" as default |
1020 | 1040 | c.argument( |
1021 | 1041 | 'ssh_access', |
@@ -1461,6 +1481,20 @@ def load_arguments(self, _): |
1461 | 1481 | 'For more information on "Auto" mode see aka.ms/aks/nap.' |
1462 | 1482 | ) |
1463 | 1483 | ) |
| 1484 | + c.argument( |
| 1485 | + "node_provisioning_default_pools", |
| 1486 | + is_preview=True, |
| 1487 | + arg_type=get_enum_type(node_provisioning_default_pools), |
| 1488 | + help=( |
| 1489 | + 'The set of default Karpenter NodePools configured for node provisioning. ' |
| 1490 | + 'Valid values are "Auto" and "None". Auto: A standard set of Karpenter NodePools are provisioned. ' |
| 1491 | + 'None: No Karpenter NodePools are provisioned. ' |
| 1492 | + 'WARNING: Changing this from Auto to None on an existing cluster will cause the default Karpenter ' |
| 1493 | + 'NodePools to be deleted, which will in turn drain and delete the nodes associated with those pools. ' |
| 1494 | + 'It is strongly recommended to not do this unless there are idle nodes ready to take the pods evicted ' |
| 1495 | + 'by that action.' |
| 1496 | + ) |
| 1497 | + ) |
1464 | 1498 | c.argument('enable_static_egress_gateway', is_preview=True, action='store_true') |
1465 | 1499 | c.argument('disable_static_egress_gateway', is_preview=True, action='store_true') |
1466 | 1500 | c.argument("enable_imds_restriction", action="store_true", is_preview=True) |
|
0 commit comments