From 35dbc09664b153018eb99d27e8f35d3e0614ad37 Mon Sep 17 00:00:00 2001 From: zirain Date: Fri, 8 Mar 2024 23:26:56 +0800 Subject: [PATCH] fix existing secret Signed-off-by: zirain --- internal/cmd/certgen.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cmd/certgen.go b/internal/cmd/certgen.go index b83f6c71b21..afa626f8d9a 100644 --- a/internal/cmd/certgen.go +++ b/internal/cmd/certgen.go @@ -74,7 +74,7 @@ func outputCerts(ctx context.Context, cli client.Client, cfg *config.Server, cer log := cfg.Logger if err != nil { - if !errors.Is(err, kubernetes.ErrSecretExists) { + if errors.Is(err, kubernetes.ErrSecretExists) { log.Info(err.Error()) } else { return fmt.Errorf("failed to create or update secrets: %w", err)