Add generic post upgrade hooks for node (#11368)

pull/11414/head
James 2024-08-01 06:58:48 +02:00 committed by GitHub
parent 54ac5a6de4
commit 4e99b94dcc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -25,6 +25,10 @@
- not upgrade_node_post_upgrade_confirm
- 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
command: "{{ kubectl }} uncordon {{ kube_override_hostname | default(inventory_hostname) }}"
delegate_to: "{{ groups['kube_control_plane'][0] }}"