Skip to content

Commit

Permalink
Add a way to force kubadm upgrade apply
Browse files Browse the repository at this point in the history
  • Loading branch information
Tassatux committed Nov 21, 2024
1 parent c8724e4 commit 6b5401e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions roles/upgrade_cp/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
---
drain: true
kubeadm_upgrade_apply_force: false
3 changes: 3 additions & 0 deletions roles/upgrade_cp/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
{% for error in kubeadm_ignore_preflight_errors %}
--ignore-preflight-errors={{ error }}
{% endfor %}
{% if kubeadm_upgrade_apply_force|bool %}
--force
{% endif %}
register: apply_upgrade

- name: 'Display result of "kubectl upgrade apply"'
Expand Down

0 comments on commit 6b5401e

Please sign in to comment.