mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 21:17:23 +00:00
certificate manager: reduce max backoff from 128s to 32s
This commit is contained in:
parent
77e5e2f9fc
commit
cba8939504
@ -232,7 +232,7 @@ func (m *manager) Start() {
|
|||||||
Duration: 2 * time.Second,
|
Duration: 2 * time.Second,
|
||||||
Factor: 2,
|
Factor: 2,
|
||||||
Jitter: 0.1,
|
Jitter: 0.1,
|
||||||
Steps: 7,
|
Steps: 5,
|
||||||
}
|
}
|
||||||
go wait.Forever(func() {
|
go wait.Forever(func() {
|
||||||
sleepInterval := m.rotationDeadline.Sub(time.Now())
|
sleepInterval := m.rotationDeadline.Sub(time.Now())
|
||||||
@ -240,7 +240,7 @@ func (m *manager) Start() {
|
|||||||
time.Sleep(sleepInterval)
|
time.Sleep(sleepInterval)
|
||||||
if err := wait.ExponentialBackoff(backoff, m.rotateCerts); err != nil {
|
if err := wait.ExponentialBackoff(backoff, m.rotateCerts); err != nil {
|
||||||
utilruntime.HandleError(fmt.Errorf("Reached backoff limit, still unable to rotate certs: %v", err))
|
utilruntime.HandleError(fmt.Errorf("Reached backoff limit, still unable to rotate certs: %v", err))
|
||||||
wait.PollInfinite(128*time.Second, m.rotateCerts)
|
wait.PollInfinite(32*time.Second, m.rotateCerts)
|
||||||
}
|
}
|
||||||
}, 0)
|
}, 0)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user