Browse Source

Add generic post upgrade hooks for node (#11368)

pull/11414/head
James 3 months ago
committed by GitHub
parent
commit
4e99b94dcc
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions
  1. 4
      roles/upgrade/post-upgrade/tasks/main.yml

4
roles/upgrade/post-upgrade/tasks/main.yml

@ -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] }}"

Loading…
Cancel
Save