fix: bump max inhibit delay to 20 min

Fixes #7138

This brings max shutdown period to 20 min that kubelet would accept.

Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
This commit is contained in:
Andrey Smirnov 2023-04-27 16:21:40 +04:00
parent d9bdea2b54
commit 344746ae2f
No known key found for this signature in database
GPG Key ID: 7B26396447AB6DFD
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ const (
logindObject = dbus.ObjectPath("/org/freedesktop/login1")
logindInterface = "org.freedesktop.login1.Manager"
inhibitMaxDelay = 2 * constants.KubeletShutdownGracePeriod
inhibitMaxDelay = 40 * constants.KubeletShutdownGracePeriod
)
type logindMock struct {

View File

@ -49,7 +49,7 @@ func TestIntegration(t *testing.T) {
d, err := kubeletConn.CurrentInhibitDelay()
require.NoError(t, err)
assert.Equal(t, 2*constants.KubeletShutdownGracePeriod, d)
assert.Equal(t, 40*constants.KubeletShutdownGracePeriod, d)
t.Log("acquiring inhibit lock")