From 22d151982e18fcc8aea1eb9dfad23fe748e21204 Mon Sep 17 00:00:00 2001 From: jiuker <2818723467@qq.com> Date: Mon, 4 Sep 2023 22:49:56 +0800 Subject: [PATCH] env's singer will be overwritten if set --- pkg/controller/certificates/csr.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/controller/certificates/csr.go b/pkg/controller/certificates/csr.go index 9bcdf2e4680..c12c1dfa651 100644 --- a/pkg/controller/certificates/csr.go +++ b/pkg/controller/certificates/csr.go @@ -63,6 +63,7 @@ func getDefaultCsrSignerName() string { defaultCsrSignerNameOnce.Do(func() { if os.Getenv(CSRSignerName) != "" { defaultCsrSignerName = os.Getenv(CSRSignerName) + return } defaultCsrSignerName = certificatesV1.KubeletServingSignerName })