Fix regression that registration-timeout check was not working for runnerset (#1178)

Follow-up for #1167
This commit is contained in:
Yusuke Kuoka
2022-03-05 19:31:05 +09:00
committed by GitHub
parent 9cc9f8c182
commit 95a5770d55
4 changed files with 62 additions and 222 deletions

View File

@@ -39,4 +39,10 @@ const (
// This can be any value but a larger value can make an unregistration timeout longer than configured in practice.
DefaultUnregistrationRetryDelay = 30 * time.Second
// registrationTimeout is the duration until a pod times out after it becomes Ready and Running.
// A pod that is timed out can be terminated if needed.
registrationTimeout = 10 * time.Minute
defaultRegistrationCheckInterval = time.Minute
)