File tree Expand file tree Collapse file tree 2 files changed +51901
-118125
lines changed Expand file tree Collapse file tree 2 files changed +51901
-118125
lines changed Original file line number Diff line number Diff line change @@ -82,9 +82,10 @@ help: ## Display this help.
8282# #@ Development
8383
8484.PHONY : manifests
85- manifests : controller-gen kustomize # # Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects.
85+ manifests : controller-gen yq kustomize # # Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects.
8686 $(CONTROLLER_GEN ) rbac:roleName=manager-role crd webhook paths=" ./..." output:crd:artifacts:config=config/crd/bases
8787 $(KUSTOMIZE ) build config/crd > config/crd/overlay/crd.yaml
88+ $(YQ ) -r ' del(.. | .description?)' -i config/crd/overlay/crd.yaml
8889 $(KUSTOMIZE ) build config/crd-specless > config/crd/overlay/crd.specless.yaml
8990
9091.PHONY : generate
@@ -285,14 +286,6 @@ install: manifests kustomize ## Install CRDs into the K8s cluster specified in ~
285286 $(KUBECTL ) create ns $(NAMESPACE ) --dry-run=client -o yaml | kubectl apply -f -,)
286287 $(KUSTOMIZE ) build config/crd | $(KUBECTL ) apply -f -
287288
288- .PHONY : install-slim
289- install-slim : manifests kustomize # # Strip descriptions from CRDs and install them into the K8s cluster specified in ~/.kube/config.
290- $(if $(NAMESPACE ) , \
291- $(KUBECTL ) create ns $(NAMESPACE ) --dry-run=client -o yaml | kubectl apply -f -,)
292- $(KUSTOMIZE ) build config/crd > config/crd/overlay/crd.yaml
293- yq -r ' del(.. | .description?)' -i config/crd/overlay/crd.yaml
294- $(KUBECTL ) apply --server-side -f config/crd/overlay/crd.yaml
295-
296289.PHONY : uninstall
297290uninstall : manifests kustomize # # Uninstall CRDs from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
298291 $(KUSTOMIZE ) build config/crd | $(KUBECTL ) delete --ignore-not-found=$(ignore-not-found ) -f -
You can’t perform that action at this time.
0 commit comments