Skip to content

Commit

Permalink
Various dependency updates (#636)
Browse files Browse the repository at this point in the history
* Update to go 1.20
* Update all tools versions
* Regenerate all generated files
* Update necessary deps from `go.mod`
* Clean up `Makefile`
  • Loading branch information
adracus authored Feb 8, 2023
1 parent b7e026f commit e118fa3
Show file tree
Hide file tree
Showing 17 changed files with 24,041 additions and 33,142 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-codegen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '1.19'
go-version: '1.20'
- name: Run make generate
run: make generate
- name: Compare the expected and actual generated/* directories
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '1.19'
go-version: '1.20'
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.48.0
version: v1.51.1
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '1.19'
go-version: '1.20'
- run: make test
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build the manager binary
FROM --platform=$BUILDPLATFORM golang:1.19 as builder
FROM --platform=$BUILDPLATFORM golang:1.20 as builder

WORKDIR /workspace
# Copy the Go Modules manifests
Expand Down
7 changes: 3 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ clean-docs: ## Remove all local mkdocs Docker images (cleanup).
.PHONY: test
test: manifests generate fmt vet test-only ## Run tests.

ENVTEST_ASSETS_DIR=$(shell pwd)/testbin
.PHONY: test-only
test-only: envtest ## Run *only* the tests - no generation, linting etc.
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path)" go test ./... -coverprofile cover.out
Expand Down Expand Up @@ -363,9 +362,9 @@ MODELS_SCHEMA ?= $(LOCALBIN)/models-schema
GOIMPORTS ?= $(LOCALBIN)/goimports

## Tool Versions
KUSTOMIZE_VERSION ?= v3.8.7
CODE_GENERATOR_VERSION ?= v0.25.5
CONTROLLER_TOOLS_VERSION ?= v0.9.0
KUSTOMIZE_VERSION ?= v5.0.0
CODE_GENERATOR_VERSION ?= v0.26.1
CONTROLLER_TOOLS_VERSION ?= v0.11.3
VGOPATH_VERSION ?= v0.0.2
GEN_CRD_API_REFERENCE_DOCS_VERSION ?= v0.3.0
ADDLICENSE_VERSION ?= v1.1.0
Expand Down
79 changes: 75 additions & 4 deletions client-go/informers/factory.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions client-go/onmetalapi/clientset.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/api-reference/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ and how it can be updated please refer to
the [Updating API Reference Documentation](/development/documentation/#api-reference-documentation)
in the documentation development guide.

* [Core](../core)
* [IPAM](../ipam)
* [Compute](../compute)
* [Networking](../networking)
Expand Down
2 changes: 1 addition & 1 deletion docs/development/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Requirements

* `go` >= 1.19
* `go` >= 1.20
* `git`, `make` and `kubectl`
* [Kustomize](https://kustomize.io/)
* Access to a Kubernetes cluster ([Minikube](https://minikube.sigs.k8s.io/docs/), [kind](https://kind.sigs.k8s.io/) or a
Expand Down
Loading

0 comments on commit e118fa3

Please sign in to comment.