1
0
Fork 0

Update code generator

This commit is contained in:
Jesper Noordsij 2026-01-13 16:34:05 +01:00 committed by GitHub
parent 2e6dfbae57
commit 794916a183
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
125 changed files with 8038 additions and 2871 deletions

View file

@ -4,11 +4,11 @@ set -e -o pipefail
PROJECT_MODULE="github.com/traefik/traefik"
MODULE_VERSION="v3"
KUBE_VERSION=v0.30.10
KUBE_VERSION=v0.34.3
CURRENT_DIR="$(pwd)"
go install "k8s.io/code-generator/cmd/deepcopy-gen@${KUBE_VERSION}"
go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.16.1
go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.19.0
CODEGEN_PKG="$(go env GOPATH)/pkg/mod/k8s.io/code-generator@${KUBE_VERSION}"
# shellcheck disable=SC1091 # Cannot check source of this file
@ -20,6 +20,7 @@ kube::codegen::gen_helpers \
"${CURRENT_DIR}"
kube::codegen::gen_client \
--with-applyconfig \
--with-watch \
--output-dir "${CURRENT_DIR}/pkg/provider/kubernetes/crd/generated" \
--output-pkg "${PROJECT_MODULE}/${MODULE_VERSION}/pkg/provider/kubernetes/crd/generated" \