From 4e99b94dcccb13f876e8c6a8c893a25c2f5bc255 Mon Sep 17 00:00:00 2001 From: James Date: Thu, 1 Aug 2024 06:58:48 +0200 Subject: [PATCH] Add generic post upgrade hooks for node (#11368) --- roles/upgrade/post-upgrade/tasks/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/upgrade/post-upgrade/tasks/main.yml b/roles/upgrade/post-upgrade/tasks/main.yml index 434ef1eea..d82fe8d33 100644 --- a/roles/upgrade/post-upgrade/tasks/main.yml +++ b/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] }}"