From 1a1973c1b58d5f6b14149a87e64c17e851dfc05a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charles-Edouard=20Br=C3=A9t=C3=A9ch=C3=A9?= Date: Mon, 14 Mar 2022 16:12:29 +0100 Subject: [PATCH] chore: add helm crds to make codegen target (#3375) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: configmap resource filters generated by helm does not account for namespace Signed-off-by: Charles-Edouard Brétéché * chore: add helm crds to make codegen target Signed-off-by: Charles-Edouard Brétéché Co-authored-by: shuting --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 55d9d0e405..06c407d0b9 100644 --- a/Makefile +++ b/Makefile @@ -301,8 +301,12 @@ helm-test-values: godownloader: godownloader .goreleaser.yml --repo kyverno/kyverno -o ./scripts/install-cli.sh --source="raw" -# kustomize-crd will create install.yaml -kustomize-crd: +.PHONY: kustomize +kustomize: ## Install kustomize + go get sigs.k8s.io/kustomize/kustomize/v4 + +.PHONY: kustomize-crd +kustomize-crd: kustomize ## Create install.yaml # Create CRD for helm deployment Helm kustomize build ./config/release | kustomize cfg grep kind=CustomResourceDefinition | $(SED) -e "1i{{- if .Values.installCRDs }}" -e '$$a{{- end }}' > ./charts/kyverno/templates/crds.yaml # Generate install.yaml that have all resources for kyverno @@ -370,7 +374,7 @@ deepcopy-autogen: controller-gen $(CONTROLLER_GEN) object:headerFile="scripts/boilerplate.go.txt" paths="./..." .PHONY: codegen -codegen: kyverno-crd report-crd deepcopy-autogen +codegen: kyverno-crd report-crd deepcopy-autogen gen-helm .PHONY: verify-codegen verify-codegen: codegen