Skip to content

Commit

Permalink
salt: Set default drain timeout to 3600s
Browse files Browse the repository at this point in the history
  • Loading branch information
TeddyAndrieux committed Dec 9, 2021
1 parent 1b47e49 commit 423bff0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
(PR[#3607](https://github.com/scality/metalk8s/pull/3607))

- Add ability to change the drain timeout from the upgrade and
downgrade scripts
downgrade scripts and default to 3600 seconds
(PR[#3633](https://github.com/scality/metalk8s/pull/3633))

## Release 2.10.5
Expand Down
3 changes: 2 additions & 1 deletion salt/_modules/metalk8s_drain.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ def __init__(
self._force = force
self._grace_period = grace_period
self._ignore_daemonset = ignore_daemonset
self._timeout = timeout or (2 ** 64 - 1)
# Default timeout is 3600 seconds
self._timeout = timeout or 3600
self._delete_local_data = delete_local_data
self._best_effort = best_effort
self._kwargs = kwargs
Expand Down

0 comments on commit 423bff0

Please sign in to comment.