Skip to content

Commit c6fa4eb

Browse files
committed
bump golang 1.17
Signed-off-by: zounengren <nrzou@trip.com>
1 parent 619e6b9 commit c6fa4eb

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

.golangci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ linters-settings:
5959
- pkg: sigs.k8s.io/controller-runtime
6060
alias: ctrl
6161
staticcheck:
62-
go: "1.16"
62+
go: "1.17"
6363
stylecheck:
64-
go: "1.16"
64+
go: "1.17"
6565

6666
issues:
6767
max-same-issues: 0

examples/configfile/custom/v1alpha1/zz_generated.deepcopy.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/config/v1alpha1/zz_generated.deepcopy.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/internal/controller/controller.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,13 @@ func (c *Controller) processNextWorkItem(ctx context.Context) bool {
267267
return true
268268
}
269269

270+
// Len returns the current queue length, for informational purposes only. You
271+
// shouldn't e.g. gate a call to Add() or Get() on Len() being a particular
272+
// value, that can't be synchronized properly.
273+
func (c *Controller) Len() int {
274+
return c.Queue.Len()
275+
}
276+
270277
const (
271278
labelError = "error"
272279
labelRequeueAfter = "requeue_after"

0 commit comments

Comments
 (0)