Skip to content

Commit

Permalink
[hack] Fix out of GOPATH client-go generation. (kubernetes#1158)
Browse files Browse the repository at this point in the history
Fix out of GOPATH client-go generation after
`Bump K8s dependencies to v1.28 kubernetes#1133`
  • Loading branch information
trasc authored Sep 25, 2023
1 parent 4aea01d commit cc7dbcb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hack/update-codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@ CODEGEN_PKG=$($GO_CMD list -m -f "{{.Dir}}" k8s.io/code-generator)
cd $(dirname ${BASH_SOURCE[0]})/..

chmod +x "${CODEGEN_PKG}/generate-internal-groups.sh"
source "${CODEGEN_PKG}/generate-groups.sh" \
chmod +x "${CODEGEN_PKG}/generate-groups.sh"
"${CODEGEN_PKG}/generate-groups.sh" \
applyconfiguration,client,lister,informer \
sigs.k8s.io/kueue/client-go \
sigs.k8s.io/kueue/apis \
kueue:v1beta1 \
--go-header-file ${KUEUE_ROOT}/hack/boilerplate.go.txt


# Future releases of of code-generator add better support for out of GOPATH generation,
# check https://github.com/kubernetes/code-generator/blob/master/examples/hack/update-codegen.sh for details,
# for now we should just move the generated code to `client-go`.
Expand Down

0 comments on commit cc7dbcb

Please sign in to comment.