Skip to content

Commit

Permalink
fix: add generate-crds target.
Browse files Browse the repository at this point in the history
Readd the Makefile target used to build the CRDs.

Signed-off-by: José Guilherme Vanz <[email protected]>
  • Loading branch information
jvanz committed Jul 23, 2024
1 parent e8dad5c commit 68fac10
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,11 @@ ifndef ignore-not-found
ignore-not-found = false
endif

.PHONY: generate-crds
generate-crds: manifests kustomize ## generate final crds with kustomize. Normally shipped in Helm charts.
mkdir -p generated-crds
$(KUSTOMIZE) build config/crd -o generated-crds # If -o points to a folder, kustomize saves them as several files instead of 1

.PHONY: install
install: manifests kustomize ## Install CRDs into the K8s cluster specified in ~/.kube/config.
$(KUSTOMIZE) build config/crd | $(KUBECTL) apply -f -
Expand Down

0 comments on commit 68fac10

Please sign in to comment.