Skip to content

Commit

Permalink
feat(lint): upgrade golangci-lint v1.50.1 -> v1.54.2
Browse files Browse the repository at this point in the history
  • Loading branch information
aauren committed Oct 7, 2023
1 parent 678b712 commit 1a4896f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ run:
linters:
enable:
- bodyclose
- depguard
- dogsled
- dupl
- durationcheck
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ GO_CACHE?=$(shell go env GOCACHE)
GO_MOD_CACHE?=$(shell go env GOMODCACHE)
BUILDTIME_BASE?=$(DOCKER_BUILD_IMAGE)
RUNTIME_BASE?=alpine:3.18
DOCKER_LINT_IMAGE?=golangci/golangci-lint:v1.50.1
DOCKER_LINT_IMAGE?=golangci/golangci-lint:v1.54.2
GOBGP_VERSION=v3.17.0
QEMU_IMAGE?=multiarch/qemu-user-static
GORELEASER_VERSION=v1.14.1
Expand Down
4 changes: 2 additions & 2 deletions pkg/controllers/routing/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ func getPodCIDRsFromAllNodeSources(node *v1core.Node) (podCIDRs []string) {
klog.Warningf("couldn't parse CIDR %s from kube-router.io/pod-cidr annotation, skipping...", podCIDR)
} else {
podCIDRs = append(podCIDRs, podCIDR)
return
return podCIDRs
}
}

Expand All @@ -286,7 +286,7 @@ func getPodCIDRsFromAllNodeSources(node *v1core.Node) (podCIDRs []string) {
}
podCIDRs = append(podCIDRs, cidr)
}
return
return podCIDRs
}

// Finally, if all else fails, use the PodCIDRs on the node spec
Expand Down

0 comments on commit 1a4896f

Please sign in to comment.