Add generic post upgrade hooks for node (#11368)
parent
54ac5a6de4
commit
4e99b94dcc
|
@ -25,6 +25,10 @@
|
||||||
- not upgrade_node_post_upgrade_confirm
|
- not upgrade_node_post_upgrade_confirm
|
||||||
- upgrade_node_post_upgrade_pause_seconds != 0
|
- upgrade_node_post_upgrade_pause_seconds != 0
|
||||||
|
|
||||||
|
- name: Run post upgrade hooks before uncordon
|
||||||
|
loop: "{{ post_upgrade_hooks | default([]) }}"
|
||||||
|
ansible.builtin.include_tasks: "{{ item }}"
|
||||||
|
|
||||||
- name: Uncordon node
|
- name: Uncordon node
|
||||||
command: "{{ kubectl }} uncordon {{ kube_override_hostname | default(inventory_hostname) }}"
|
command: "{{ kubectl }} uncordon {{ kube_override_hostname | default(inventory_hostname) }}"
|
||||||
delegate_to: "{{ groups['kube_control_plane'][0] }}"
|
delegate_to: "{{ groups['kube_control_plane'][0] }}"
|
||||||
|
|
Loading…
Reference in New Issue