Skip to content

Commit 76f0621

Browse files
committed
BUILD/MAJOR: k8s: resolve weird errors with k8s tooling
k8s tools have introduced breaking changes (again), alternative arguments do not work, so for now we fallback to the version that is working
1 parent e14cf72 commit 76f0621

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crs/code-generator.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ API_PKGS=${API_PKGS::-1} # remove trailing ","
2828
VERSION=$(go list -m k8s.io/api | cut -d ' ' -f2)
2929
GOBIN="$(go env GOBIN)"
3030
gobin="${GOBIN:-$(go env GOPATH)/bin}"
31-
go install k8s.io/code-generator/cmd/{deepcopy-gen,register-gen,client-gen,lister-gen,informer-gen,defaulter-gen}@$VERSION
31+
# new version is completly broken (with breaking changes \o/) use old one
32+
#go install k8s.io/code-generator/cmd/{deepcopy-gen,register-gen,client-gen,lister-gen,informer-gen,defaulter-gen}@$VERSION
33+
go install k8s.io/code-generator/cmd/{deepcopy-gen,register-gen,client-gen,lister-gen,informer-gen,defaulter-gen}@v0.29.5
3234

3335
# Generate Code
3436
echo "Generating code for $API_PKGS"

go.mod

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ module github.com/haproxytech/kubernetes-ingress
22

33
go 1.22.0
44

5-
toolchain go1.22.3
6-
75
require (
86
github.com/Masterminds/semver/v3 v3.2.1
97
github.com/fasthttp/router v1.4.20

0 commit comments

Comments
 (0)