Skip to content

Commit

Permalink
Merge pull request kubewarden#825 from jvanz/main
Browse files Browse the repository at this point in the history
fix: add generate-crds target.
  • Loading branch information
jvanz authored Jul 24, 2024
2 parents e8dad5c + 68fac10 commit 7b45bd1
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 7b45bd1

Please sign in to comment.