Skip to content

Commit

Permalink
Fix waiting for daemonset when before and after patching desired numb…
Browse files Browse the repository at this point in the history
…er of scheduled pods is 0
  • Loading branch information
azaleski9 committed Jun 28, 2024
1 parent 0afd257 commit fa4c8ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/module_utils/k8s/waiter.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def daemonset_ready(daemonset: ResourceInstance) -> bool:
return bool(
daemonset.status
and daemonset.status.desiredNumberScheduled is not None
and daemonset.status.updatedNumberScheduled
and (daemonset.status.updatedNumberScheduled or 0)
== daemonset.status.desiredNumberScheduled
and daemonset.status.numberReady == daemonset.status.desiredNumberScheduled
and daemonset.status.observedGeneration == daemonset.metadata.generation
Expand Down

0 comments on commit fa4c8ab

Please sign in to comment.