Update pod deletion conditions for local storage used in a daemon set pod (#1095)

* Update pod deletion conditions for local storage used in a daemon set pod

Refactor pod deletion logic to handle local storage in daemon set pods correctly.

* Add bugfix for k8s_drain handling local storage pods

Fix logic for handling pods with local storage in k8s_drain.

* Refactor filter_pods function for clarity and efficiency

* Fix sanity and linter errors

---------

Co-authored-by: Bianca Henderson <bianca@redhat.com>
This commit is contained in:
Juan Morete
2026-05-15 20:55:55 +02:00
committed by GitHub
parent 8a58d3b6de
commit b58b2ca70e
2 changed files with 15 additions and 12 deletions

View File

@@ -0,0 +1,3 @@
---
bugfixes:
- k8s_drain - Fix logic for handling pods with local storage to correctly check for empty_dir volumes in replicated pods and pods managed by DaemonSets (https://github.com/ansible-collections/kubernetes.core/pull/1095).