Skip to content

Commit

Permalink
BUILD/MAJOR: k8s: resolve weird errors with k8s tooling
Browse files Browse the repository at this point in the history
k8s tools have introduced breaking changes (again), alternative arguments do not work, so for now we fallback to the version that is working
  • Loading branch information
oktalz committed Jun 3, 2024
1 parent e14cf72 commit 76f0621
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 3 additions & 1 deletion crs/code-generator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ API_PKGS=${API_PKGS::-1} # remove trailing ","
VERSION=$(go list -m k8s.io/api | cut -d ' ' -f2)
GOBIN="$(go env GOBIN)"
gobin="${GOBIN:-$(go env GOPATH)/bin}"
go install k8s.io/code-generator/cmd/{deepcopy-gen,register-gen,client-gen,lister-gen,informer-gen,defaulter-gen}@$VERSION
# new version is completly broken (with breaking changes \o/) use old one
#go install k8s.io/code-generator/cmd/{deepcopy-gen,register-gen,client-gen,lister-gen,informer-gen,defaulter-gen}@$VERSION
go install k8s.io/code-generator/cmd/{deepcopy-gen,register-gen,client-gen,lister-gen,informer-gen,defaulter-gen}@v0.29.5

# Generate Code
echo "Generating code for $API_PKGS"
Expand Down
2 changes: 0 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ module github.com/haproxytech/kubernetes-ingress

go 1.22.0

toolchain go1.22.3

require (
github.com/Masterminds/semver/v3 v3.2.1
github.com/fasthttp/router v1.4.20
Expand Down

0 comments on commit 76f0621

Please sign in to comment.