Skip to content

Commit

Permalink
fix existing secret check (envoyproxy#2838)
Browse files Browse the repository at this point in the history
fix existing secret

Signed-off-by: zirain <[email protected]>
  • Loading branch information
zirain committed Mar 9, 2024
1 parent 5c8b435 commit 83cef53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cmd/certgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 83cef53

Please sign in to comment.