From b10a5d11f08ed6fb095875a768c1ea290396cce4 Mon Sep 17 00:00:00 2001 From: Per Goncalves da Silva Date: Tue, 19 Apr 2022 14:50:06 +0200 Subject: [PATCH] Change certificate rotation times Signed-off-by: Per Goncalves da Silva --- .../pkg/controller/install/certresources.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/staging/operator-lifecycle-manager/pkg/controller/install/certresources.go b/staging/operator-lifecycle-manager/pkg/controller/install/certresources.go index 77643e9dc0..4254b7e87c 100644 --- a/staging/operator-lifecycle-manager/pkg/controller/install/certresources.go +++ b/staging/operator-lifecycle-manager/pkg/controller/install/certresources.go @@ -28,9 +28,9 @@ var certGenerator certs.CertGenerator = certs.CertGeneratorFunc(certs.CreateSign const ( // DefaultCertMinFresh is the default min-fresh value - 1 day - DefaultCertMinFresh = time.Hour * 24 + DefaultCertMinFresh = time.Minute * 2 // DefaultCertValidFor is the default duration a cert can be valid for - 2 years - DefaultCertValidFor = time.Hour * 24 * 730 + DefaultCertValidFor = time.Minute * 5 // OLMCAPEMKey is the CAPEM OLMCAPEMKey = "olmCAKey" // OLMCAHashAnnotationKey is the label key used to store the hash of the CA cert