Skip to content

Commit

Permalink
touch up a few things
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverMKing committed Nov 2, 2023
1 parent 4165d86 commit 220163f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions devenv/kustomize/operator-deployment/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,10 @@ spec:
name: cert
readOnly: true
livenessProbe:
failureThreshold: 6
httpGet:
path: /healthz
port: 8080
periodSeconds: 20
periodSeconds: 5
readinessProbe:
httpGet:
path: /readyz
Expand Down
2 changes: 1 addition & 1 deletion pkg/webhook/cert.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func (c *certManager) ensureSecret(ctx context.Context, cl client.Client) error
Labels: manifests.GetTopLevelLabels(),
},
}
if err := cl.Create(ctx, secret); err != nil {
if err := client.IgnoreAlreadyExists(cl.Create(ctx, secret)); err != nil {
return fmt.Errorf("creating secret: %w", err)
}

Expand Down

0 comments on commit 220163f

Please sign in to comment.