diff --git a/internal/cmd/certgen.go b/internal/cmd/certgen.go index b83f6c71b21f..afa626f8d9aa 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)