Skip to content

Commit ecbc792

Browse files
Merge pull request #2183 from jubittajohn/fix-makeServerCert-call-4.22
OCPBUGS-84536: Update MakeServerCert to use time.Duration instead of days
2 parents b105ae5 + 248b70d commit ecbc792

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • pkg/controller/controllercmd

pkg/controller/controllercmd/cmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ func (c *ControllerCommandConfig) AddDefaultRotationToConfig(config *operatorv1a
287287
config.ServingInfo.CertFile = filepath.Join(temporaryCertDir, "tls.crt")
288288
config.ServingInfo.KeyFile = filepath.Join(temporaryCertDir, "tls.key")
289289
// nothing can trust this, so we don't really care about hostnames
290-
servingCert, err := ca.MakeServerCert(sets.New("localhost"), 30)
290+
servingCert, err := ca.MakeServerCert(sets.New("localhost"), time.Hour*24*30)
291291
if err != nil {
292292
return nil, nil, err
293293
}

0 commit comments

Comments
 (0)