From 248b70da923f47b8daa7aef1e03c475f00aca539 Mon Sep 17 00:00:00 2001 From: jubittajohn Date: Mon, 27 Apr 2026 15:05:09 -0400 Subject: [PATCH] update MakeServerCert to use time.Duration instead of days Signed-off-by: jubittajohn --- pkg/controller/controllercmd/cmd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controller/controllercmd/cmd.go b/pkg/controller/controllercmd/cmd.go index 634053521c..16aca81552 100644 --- a/pkg/controller/controllercmd/cmd.go +++ b/pkg/controller/controllercmd/cmd.go @@ -280,7 +280,7 @@ func (c *ControllerCommandConfig) AddDefaultRotationToConfig(config *operatorv1a config.ServingInfo.CertFile = filepath.Join(temporaryCertDir, "tls.crt") config.ServingInfo.KeyFile = filepath.Join(temporaryCertDir, "tls.key") // nothing can trust this, so we don't really care about hostnames - servingCert, err := ca.MakeServerCert(sets.New("localhost"), 30) + servingCert, err := ca.MakeServerCert(sets.New("localhost"), time.Hour*24*30) if err != nil { return nil, nil, err }