Skip to content

Commit

Permalink
cert-rotation controller: use shorter lease duration
Browse files Browse the repository at this point in the history
This uses shorter lease duration periods so that suspended/shutdown controller would not wait several minutes to grab the lease and start refreshing certificates sooner
  • Loading branch information
vrutkovs committed May 13, 2024
1 parent d260b03 commit 9784703
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/cmd/certregenerationcontroller/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ func NewCertRegenerationControllerCommand(ctx context.Context) *cobra.Command {
// TODO: Remove when the internal logic can start serving without extension-apiserver-authentication
// and live reload extension-apiserver-authentication after it is available
ccc.DisableServing = true
ccc.LeaseDuration.Duration = 68 * time.Second
ccc.RenewDeadline.Duration = 53 * time.Second
ccc.RetryPeriod.Duration = 13 * time.Second

cmd := ccc.NewCommandWithContext(ctx)
cmd.Use = "cert-regeneration-controller"
Expand Down

0 comments on commit 9784703

Please sign in to comment.