Skip to content

Commit 04b44f9

Browse files
committed
Makefile: remove descriptions from CRDs
1 parent 0b4b286 commit 04b44f9

File tree

2 files changed

+51901
-118125
lines changed

2 files changed

+51901
-118125
lines changed

Makefile

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff 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
297290
uninstall: 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 -

0 commit comments

Comments
 (0)