Skip to content

Commit 59b94b0

Browse files
committed
chore(chart): reduce crd size by removing description
1 parent 44e7ac8 commit 59b94b0

6 files changed

Lines changed: 11084 additions & 14892 deletions

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ docker-push:
5252
manifests: generate gen-schemas ## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects.
5353
#$(CONTROLLER_GEN) rbac:roleName=manager-role crd webhook paths="./..." output:crd:artifacts:config=config/crd/bases
5454
$(CONTROLLER_GEN) crd paths="./api/..." output:crd:artifacts:config=chart/crds
55+
$(MAKE) strip-crd-descriptions
5556

5657

5758
.PHONY: generate
@@ -188,6 +189,11 @@ build-debug:
188189
install:
189190
cp ./.bin/$(NAME) /usr/local/bin/
190191

192+
strip-crd-descriptions:
193+
@for f in chart/crds/*.yaml; do \
194+
yq 'del(.. | select(has("description")).description)' "$$f" > "$$f.tmp" && mv "$$f.tmp" "$$f"; \
195+
done
196+
191197
install-crd: manifests
192198
kubectl apply -f chart/crds
193199

@@ -295,4 +301,4 @@ bench:
295301

296302
.PHONY: modernize
297303
modernize:
298-
go fix ./...
304+
go fix ./...

api/v1/zz_generated.deepcopy.go

Lines changed: 34 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)