From 78239a2947b43dc2438c4130f1ad6e8c7e0d18e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charles-Edouard=20Br=C3=A9t=C3=A9ch=C3=A9?= Date: Thu, 10 Mar 2022 16:07:48 +0100 Subject: [PATCH] chore: gen helm crds from config crds (#3356) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Charles-Edouard Brétéché Co-authored-by: shuting --- Makefile | 11 +++++++++++ charts/kyverno/templates/crds.yaml | 7 +++++++ 2 files changed, 18 insertions(+) diff --git a/Makefile b/Makefile index d6a9e6e63f..c7c2d9d2dc 100644 --- a/Makefile +++ b/Makefile @@ -391,6 +391,17 @@ vet: gen-helm-docs: ## Generate Helm docs @docker run -v ${PWD}:/work -w /work jnorwood/helm-docs:v1.6.0 -s file +.PHONY: gen-helm +gen-helm: gen-helm-docs kustomize-crd ## Generate Helm charts stuff + +.PHONY: verify-helm +verify-helm: gen-helm ## Check Helm charts are up to date + git add --all + git diff charts + @echo 'If this test fails, it is because the git diff is non-empty after running "make gen-helm".' + @echo 'To correct this, locally run "make gen-helm", commit the changes, and re-run tests.' + git diff --quiet --exit-code charts + .PHONY: check-helm-docs check-helm-docs: gen-helm-docs ## Check Helm docs git add --all diff --git a/charts/kyverno/templates/crds.yaml b/charts/kyverno/templates/crds.yaml index e27ec5e407..17318d2782 100644 --- a/charts/kyverno/templates/crds.yaml +++ b/charts/kyverno/templates/crds.yaml @@ -5,6 +5,7 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.4.0 config.kubernetes.io/index: '1' + internal.config.kubernetes.io/index: '1' creationTimestamp: null labels: app.kubernetes.io/component: kyverno @@ -1382,6 +1383,7 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.4.0 config.kubernetes.io/index: '2' + internal.config.kubernetes.io/index: '2' creationTimestamp: null labels: app.kubernetes.io/component: kyverno @@ -1874,6 +1876,7 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.4.0 config.kubernetes.io/index: '3' + internal.config.kubernetes.io/index: '3' creationTimestamp: null labels: app.kubernetes.io/component: kyverno @@ -2366,6 +2369,7 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.4.0 config.kubernetes.io/index: '4' + internal.config.kubernetes.io/index: '4' creationTimestamp: null labels: app.kubernetes.io/component: kyverno @@ -2547,6 +2551,7 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.4.0 config.kubernetes.io/index: '5' + internal.config.kubernetes.io/index: '5' creationTimestamp: null labels: app.kubernetes.io/component: kyverno @@ -3924,6 +3929,7 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.4.0 config.kubernetes.io/index: '6' + internal.config.kubernetes.io/index: '6' creationTimestamp: null labels: app.kubernetes.io/component: kyverno @@ -4416,6 +4422,7 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.4.0 config.kubernetes.io/index: '7' + internal.config.kubernetes.io/index: '7' creationTimestamp: null labels: app.kubernetes.io/component: kyverno