diff --git a/Makefile b/Makefile index 60da493dce754e..d535f14e7e9334 100644 --- a/Makefile +++ b/Makefile @@ -263,7 +263,7 @@ manifests: ## Generate K8s manifests e.g. CRD, RBAC etc. $(eval TMPDIR := $(shell mktemp -d -t cilium.tmpXXXXXXXX)) $(QUIET)$(GO) run sigs.k8s.io/controller-tools/cmd/controller-gen $(CRD_OPTIONS) paths=$(CRD_PATHS) output:crd:artifacts:config="$(TMPDIR)" $(QUIET)$(GO) run ./tools/crdcheck "$(TMPDIR)" - @ + @# Clean up old CRD state and start with a blank state. for path in $(CRDS_CILIUM_PATHS); do rm -rf $${path} && mkdir $${path}; done @ for file in $(CRDS_CILIUM_V2); do mv ${TMPDIR}/cilium.io_$${file}.yaml ./pkg/k8s/apis/cilium.io/client/crds/v2/$${file}.yaml; done