Skip to content

Commit

Permalink
[multicluster]: Update controller-gen version from v0.9.0 to v0.14.0 (#…
Browse files Browse the repository at this point in the history
…6137)

Signed-off-by: Shikhar Soni <[email protected]>
  • Loading branch information
shikharish authored Apr 1, 2024
1 parent e7df533 commit b9e19f4
Show file tree
Hide file tree
Showing 20 changed files with 7,584 additions and 7,539 deletions.
2 changes: 1 addition & 1 deletion build/images/codegen/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ RUN go install k8s.io/code-generator/cmd/client-gen@kubernetes-$K8S_VERSION && \
go install google.golang.org/protobuf/cmd/[email protected] && \
go install google.golang.org/grpc/cmd/[email protected] && \
go install golang.org/x/tools/cmd/goimports@latest && \
go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.9.0
go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.14.0

COPY --from=protoc /tmp/protoc/bin /usr/local/bin
COPY --from=protoc /tmp/protoc/include /usr/local/include
35 changes: 18 additions & 17 deletions build/images/codegen/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,21 @@ The image can only be built on an x86_64 machine (no arm support).

Here is the table of codegen images that have been uploaded:

| Tag | Change |
| :----------------------------- | ---------------------------------------------------- |
| kubernetes-1.29.2-build.0 | Upgraded protoc (v26.0), protoc-gen-go (v1.33.0), protoc-gen-go-grpc (v1.3.0) |
| kubernetes-1.29.2 | Upgraded K8s libraries to v1.29.2 |
| kubernetes-1.26.4-build.1 | Replace github.com/golang/mock with go.uber.org/mock |
| kubernetes-1.26.4-build.0 | Upgraded Go to v1.21 |
| kubernetes-1.26.4 | Upgraded K8s libraries to v1.26.4 |
| kubernetes-1.24.0-build.2 | Upgraded base image to ubuntu:22.04 |
| kubernetes-1.24.0-build.1 | Upgraded Go to v1.19 |
| kubernetes-1.24.0-build.0 | Add controller-gen v0.9.0 |
| kubernetes-1.24.0 | Upgraded K8s libraries to v1.24.0 |
| kubernetes-1.21.0-build.1 | Upgraded protoc-gen-go to v1.5.2 |
| kubernetes-1.21.0-build.0 | Upgraded Go to v1.17 |
| kubernetes-1.21.0 | Upgraded K8s libraries to v1.21.0 |
| kubernetes-1.19.8 | Upgraded K8s libraries to v1.19.8 |
| kubernetes-1.18.4 | Upgraded K8s libraries to v1.18.4 |
| kubernetes-1.17.6 | Upgraded K8s libraries to v1.17.6 |
| Tag | Change |
| :------------------------ | ----------------------------------------------------------------------------- |
| kubernetes-1.29.2-build.1 | Upgraded controller-gen to v0.14.0 |
| kubernetes-1.29.2-build.0 | Upgraded protoc (v26.0), protoc-gen-go (v1.33.0), protoc-gen-go-grpc (v1.3.0) |
| kubernetes-1.29.2 | Upgraded K8s libraries to v1.29.2 |
| kubernetes-1.26.4-build.1 | Replace github.com/golang/mock with go.uber.org/mock |
| kubernetes-1.26.4-build.0 | Upgraded Go to v1.21 |
| kubernetes-1.26.4 | Upgraded K8s libraries to v1.26.4 |
| kubernetes-1.24.0-build.2 | Upgraded base image to ubuntu:22.04 |
| kubernetes-1.24.0-build.1 | Upgraded Go to v1.19 |
| kubernetes-1.24.0-build.0 | Add controller-gen v0.9.0 |
| kubernetes-1.24.0 | Upgraded K8s libraries to v1.24.0 |
| kubernetes-1.21.0-build.1 | Upgraded protoc-gen-go to v1.5.2 |
| kubernetes-1.21.0-build.0 | Upgraded Go to v1.17 |
| kubernetes-1.21.0 | Upgraded K8s libraries to v1.21.0 |
| kubernetes-1.19.8 | Upgraded K8s libraries to v1.19.8 |
| kubernetes-1.18.4 | Upgraded K8s libraries to v1.18.4 |
| kubernetes-1.17.6 | Upgraded K8s libraries to v1.17.6 |
2 changes: 1 addition & 1 deletion hack/update-codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ set -o errexit
set -o pipefail

ANTREA_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../" && pwd )"
IMAGE_NAME="antrea/codegen:kubernetes-1.29.2-build.0"
IMAGE_NAME="antrea/codegen:kubernetes-1.29.2-build.1"

# Recent versions of Git will not access .git directories which are owned by
# another user (as a security measure), unless the directories are explicitly
Expand Down
2 changes: 1 addition & 1 deletion multicluster/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ run: manifests generate fmt vet ## Run a controller from your host.

CONTROLLER_GEN = $(shell pwd)/bin/controller-gen
controller-gen: ## Download controller-gen locally if necessary.
$(call go-get-tool,$(CONTROLLER_GEN),sigs.k8s.io/controller-tools/cmd/controller-gen@v0.9.0)
$(call go-get-tool,$(CONTROLLER_GEN),sigs.k8s.io/controller-tools/cmd/controller-gen@v0.14.0)

codegen:
./hack/update-codegen.sh
Expand Down

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

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

Loading

0 comments on commit b9e19f4

Please sign in to comment.