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:
parent
d9bdea2b54
commit
344746ae2f
@ -21,7 +21,7 @@ const (
|
|||||||
logindObject = dbus.ObjectPath("/org/freedesktop/login1")
|
logindObject = dbus.ObjectPath("/org/freedesktop/login1")
|
||||||
logindInterface = "org.freedesktop.login1.Manager"
|
logindInterface = "org.freedesktop.login1.Manager"
|
||||||
|
|
||||||
inhibitMaxDelay = 2 * constants.KubeletShutdownGracePeriod
|
inhibitMaxDelay = 40 * constants.KubeletShutdownGracePeriod
|
||||||
)
|
)
|
||||||
|
|
||||||
type logindMock struct {
|
type logindMock struct {
|
||||||
|
@ -49,7 +49,7 @@ func TestIntegration(t *testing.T) {
|
|||||||
d, err := kubeletConn.CurrentInhibitDelay()
|
d, err := kubeletConn.CurrentInhibitDelay()
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
||||||
assert.Equal(t, 2*constants.KubeletShutdownGracePeriod, d)
|
assert.Equal(t, 40*constants.KubeletShutdownGracePeriod, d)
|
||||||
|
|
||||||
t.Log("acquiring inhibit lock")
|
t.Log("acquiring inhibit lock")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user