You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/rotator/rotator.go
+4-15Lines changed: 4 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,7 @@ const (
41
41
caCertName="ca.crt"
42
42
caKeyName="ca.key"
43
43
rotationCheckFrequency=12*time.Hour
44
+
certValidityDuration=10*365*24*time.Hour
44
45
lookaheadInterval=90*24*time.Hour
45
46
)
46
47
@@ -62,9 +63,6 @@ var _ manager.Runnable = &CertRotator{}
62
63
63
64
varrestartOnSecretRefresh=false
64
65
65
-
varcertValidityDuration=flag.Duration("cert-validity-duration", 10*365*24*time.Hour, "Sets how long the cert is valid for, defaults to 10 years")
66
-
67
-
68
66
//WebhookInfo is used by the rotator to receive info about resources to be updated with certificates
69
67
typeWebhookInfostruct {
70
68
//Name is the name of the webhook for a validating or mutating webhook, or the CRD name in case of a CRD conversion webhook
@@ -73,7 +71,7 @@ type WebhookInfo struct {
73
71
}
74
72
75
73
funcinit() {
76
-
flag.BoolVar(&restartOnSecretRefresh, "cert-restart-on-secret-refresh", true, "Kills the process when secrets are refreshed so that the pod can be restarted (secrets take up to 60s to be updated by running pods)")
74
+
flag.BoolVar(&restartOnSecretRefresh, "cert-restart-on-secret-refresh", false, "Kills the process when secrets are refreshed so that the pod can be restarted (secrets take up to 60s to be updated by running pods)")
0 commit comments