Commit 05fc657
Wen Huang
feat: support --node-vm-size on nodepool update for VMSS pool resize
Enable changing the VM size (SKU) of an existing VMSS-based agent pool
via `az aks nodepool update --node-vm-size <new-size>`. The RP performs
a rolling upgrade (surge new nodes, drain old, delete old) to replace
nodes with the new VM size.
This preview feature requires:
- AFEC registration: Microsoft.ContainerService/AgentPoolVMSSResize
- RP internal toggle: enable-agentpool-vmsize-resize
Changes:
- agentpool_decorator.py: add update_vm_size() for VMSS pools and call
it in update_agentpool_profile_preview()
- _params.py: mark --node-vm-size as is_preview for nodepool update
- _help.py: update help text and add VMSS resize example
- test_agentpool_decorator.py: add unit tests for update_vm_size1 parent fb5c19f commit 05fc657
4 files changed
Lines changed: 78 additions & 1 deletion
File tree
- src/aks-preview/azext_aks_preview
- tests/latest
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2478 | 2478 | | |
2479 | 2479 | | |
2480 | 2480 | | |
2481 | | - | |
| 2481 | + | |
2482 | 2482 | | |
2483 | 2483 | | |
2484 | 2484 | | |
| |||
2513 | 2513 | | |
2514 | 2514 | | |
2515 | 2515 | | |
| 2516 | + | |
| 2517 | + | |
2516 | 2518 | | |
2517 | 2519 | | |
2518 | 2520 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2205 | 2205 | | |
2206 | 2206 | | |
2207 | 2207 | | |
| 2208 | + | |
2208 | 2209 | | |
2209 | 2210 | | |
2210 | 2211 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1848 | 1848 | | |
1849 | 1849 | | |
1850 | 1850 | | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
| 1868 | + | |
| 1869 | + | |
| 1870 | + | |
| 1871 | + | |
| 1872 | + | |
| 1873 | + | |
| 1874 | + | |
1851 | 1875 | | |
1852 | 1876 | | |
1853 | 1877 | | |
| |||
1910 | 1934 | | |
1911 | 1935 | | |
1912 | 1936 | | |
| 1937 | + | |
| 1938 | + | |
| 1939 | + | |
1913 | 1940 | | |
1914 | 1941 | | |
1915 | 1942 | | |
| |||
Lines changed: 47 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2650 | 2650 | | |
2651 | 2651 | | |
2652 | 2652 | | |
| 2653 | + | |
| 2654 | + | |
| 2655 | + | |
| 2656 | + | |
| 2657 | + | |
| 2658 | + | |
| 2659 | + | |
| 2660 | + | |
| 2661 | + | |
| 2662 | + | |
| 2663 | + | |
| 2664 | + | |
| 2665 | + | |
| 2666 | + | |
| 2667 | + | |
| 2668 | + | |
| 2669 | + | |
| 2670 | + | |
| 2671 | + | |
| 2672 | + | |
| 2673 | + | |
| 2674 | + | |
| 2675 | + | |
| 2676 | + | |
| 2677 | + | |
| 2678 | + | |
| 2679 | + | |
| 2680 | + | |
| 2681 | + | |
| 2682 | + | |
| 2683 | + | |
| 2684 | + | |
| 2685 | + | |
| 2686 | + | |
| 2687 | + | |
| 2688 | + | |
| 2689 | + | |
| 2690 | + | |
| 2691 | + | |
| 2692 | + | |
| 2693 | + | |
2653 | 2694 | | |
2654 | 2695 | | |
2655 | 2696 | | |
| |||
2990 | 3031 | | |
2991 | 3032 | | |
2992 | 3033 | | |
| 3034 | + | |
| 3035 | + | |
| 3036 | + | |
2993 | 3037 | | |
2994 | 3038 | | |
2995 | 3039 | | |
| |||
3086 | 3130 | | |
3087 | 3131 | | |
3088 | 3132 | | |
| 3133 | + | |
| 3134 | + | |
| 3135 | + | |
3089 | 3136 | | |
3090 | 3137 | | |
3091 | 3138 | | |
| |||
0 commit comments