diff --git a/Makefile b/Makefile index ce3f26220403b..2e59ab5f2d22a 100644 --- a/Makefile +++ b/Makefile @@ -254,7 +254,7 @@ build-rpm: ## Build rpm package of cilium. ##@ API targets CRD_OPTIONS ?= "crd:crdVersions=v1" manifests: ## Generate K8s manifests e.g. CRD, RBAC etc. - $(eval TMPDIR := $(shell mktemp -d)) + $(eval TMPDIR := $(shell mktemp -d -t cilium.tmpXXXXXXXX)) $(QUIET)$(GO) run sigs.k8s.io/controller-tools/cmd/controller-gen $(CRD_OPTIONS) paths="$(PWD)/pkg/k8s/apis/cilium.io/v2;$(PWD)/pkg/k8s/apis/cilium.io/v2alpha1" output:crd:artifacts:config="$(TMPDIR)" $(QUIET)$(GO) run ./tools/crdcheck "$(TMPDIR)" mv ${TMPDIR}/cilium.io_ciliumnetworkpolicies.yaml ./pkg/k8s/apis/cilium.io/client/crds/v2/ciliumnetworkpolicies.yaml