Skip to content

Commit

Permalink
Fix deepcopy generation script (#6791)
Browse files Browse the repository at this point in the history
The script [hack/generate-crd-deepcopy.sh](https://github.com/projectcontour/contour/blob/d05f43a103e53fc21078a8dbd2daf1ac56b5e787/hack/generate-crd-deepcopy.sh) was unintentionally rendered ineffective by #6117. This occurred because `exec` replaces the current shell process with the specified binary, preventing remaining lines of the script from running.

This update restores the deepcopy generation functionality and includes the results of `make generate` to address changes missed since the last successful run.

Fixes #6790

Signed-off-by: Tero Saarni <tero.saarni@est.tech>
  • Loading branch information
tsaarni authored Dec 3, 2024
1 parent 63bb34a commit da03924
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion apis/projectcontour/v1alpha1/zz_generated.deepcopy.go

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

4 changes: 2 additions & 2 deletions hack/generate-crd-deepcopy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ readonly HEADER=$(mktemp)

boilerplate > "${HEADER}"

exec echo "controller-gen version: "
exec go run sigs.k8s.io/controller-tools/cmd/controller-gen --version
echo "controller-gen version: "
go run sigs.k8s.io/controller-tools/cmd/controller-gen --version

exec go run sigs.k8s.io/controller-tools/cmd/controller-gen \
"object:headerFile=${HEADER}" \
Expand Down

0 comments on commit da03924

Please sign in to comment.