Fix kubeadm upgrade node skipPhases with multiple CP nodes (#12384)

Add 1.32 conditional defaults

Restore support for kubeadm upgrade node --skip-phases < 1.32, apply still needs to be restricted

Co-authored-by: Chad Swenson <chadswen@gmail.com>
This commit is contained in:
k8s-infra-cherrypick-robot
2025-07-07 23:35:26 -07:00
committed by GitHub
parent 9a08afa3f9
commit 2d0cc2b4ea
3 changed files with 14 additions and 7 deletions

View File

@@ -502,7 +502,7 @@ apply:
{% endif %}
imagePullPolicy: {{ k8s_image_pull_policy }}
imagePullSerial: {{ kubeadm_image_pull_serial | lower }}
{% for skip_phase in kubeadm_init_phases_skip %}
{% for skip_phase in kubeadm_upgrade_node_phases_skip %}
{% if loop.first %}
skipPhases:
{% endif %}