Skip to content

Commit

Permalink
Update pkg/controller/pods.go
Browse files Browse the repository at this point in the history
Co-authored-by: Ramon de Klein <[email protected]>
  • Loading branch information
jiuker and ramondeklein authored Aug 12, 2024
1 parent 152f90a commit 2749a27
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pkg/controller/pods.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,9 @@ func (c *Controller) DeletePodsByStatefulSet(ctx context.Context, sts *appsv1.St
}
for _, item := range podList.Items {
err = c.k8sClient.Delete(ctx, &item)
if err != nil {
// Ignore Not Found
if client.IgnoreNotFound(err) != nil {
return err
}
// Ignore Not Found
if client.IgnoreNotFound(err) != nil {
log.Printf("unable to restart %s/%s (ignored): %s", item.Namespace, item.Name, err)

Check failure on line 66 in pkg/controller/pods.go

View workflow job for this annotation

GitHub Actions / goreleaser-operator

undefined: log

Check failure on line 66 in pkg/controller/pods.go

View workflow job for this annotation

GitHub Actions / govet (1.22.x, ubuntu-latest)

undefined: log

Check failure on line 66 in pkg/controller/pods.go

View workflow job for this annotation

GitHub Actions / lint (1.22.x, ubuntu-latest)

undefined: log) (typecheck)

Check failure on line 66 in pkg/controller/pods.go

View workflow job for this annotation

GitHub Actions / lint (1.22.x, ubuntu-latest)

undefined: log (typecheck)

Check failure on line 66 in pkg/controller/pods.go

View workflow job for this annotation

GitHub Actions / Check for vulnerable dependencies (1.22.x)

undefined: log
}
}
return
Expand Down

0 comments on commit 2749a27

Please sign in to comment.