Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup after gen-crd target in compatible way #9682

Merged
merged 1 commit into from
Jan 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion libcalico-go/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ gen-files: gen-crds
gen-crds:
rm -rf config/crd
$(DOCKER_GO_BUILD) sh -c '$(GIT_CONFIG_SSH) controller-gen crd:allowDangerousTypes=true,crdVersions=v1,deprecatedV1beta1CompatibilityPreserveUnknownFields=false paths=./lib/apis/... output:crd:dir=config/crd/'
rm -f config/crd/{_,_nodes}.yaml
# Cleanup
rm -f config/crd/_.yaml
rm -f config/crd/_nodes.yaml
# Patch in manual tweaks to the generated CRDs.
patch -p2 < patches/0001-Add-nullable-to-IPAM-block-allocations-field.patch
# Remove the first yaml separator line.
Expand Down
Loading