Skip to content

Commit 280b2e6

Browse files
committed
Makefile: remove descriptions from CRDs
1 parent 0b4b286 commit 280b2e6

File tree

2 files changed

+51900
-118124
lines changed

2 files changed

+51900
-118124
lines changed

Makefile

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ help: ## Display this help.
8585
manifests: controller-gen 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)