mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-09 08:55:55 -04:00
Merge pull request #103137 from wzshiming/fix/expected_inhibit_delay
Allow the actual inhibit delay to be greater than the expected inhibit delay
This commit is contained in:
commit
d7c1663556
1 changed files with 1 additions and 1 deletions
|
|
@ -157,7 +157,7 @@ func (m *Manager) start() (chan struct{}, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
if updatedInhibitDelay != m.shutdownGracePeriodRequested {
|
||||
if m.shutdownGracePeriodRequested > updatedInhibitDelay {
|
||||
return nil, fmt.Errorf("node shutdown manager was unable to update logind InhibitDelayMaxSec to %v (ShutdownGracePeriod), current value of InhibitDelayMaxSec (%v) is less than requested ShutdownGracePeriod", m.shutdownGracePeriodRequested, updatedInhibitDelay)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue