Skip to content

Commit

Permalink
fix: reduce size of CRDs
Browse files Browse the repository at this point in the history
  • Loading branch information
rangoo94 committed Dec 19, 2024
1 parent 3f7ea29 commit caf64a3
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2,653 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ manifests-create: controller-gen ## Generate WebhookConfiguration, ClusterRole a

manifests-clean: yq
@for file in testworkflows.testkube.io_testworkflows.yaml testworkflows.testkube.io_testworkflowtemplates.yaml testworkflows.testkube.io_testworkflowexecutions.yaml; do \
for key in securityContext volumes dnsPolicy affinity tolerations hostAliases dnsConfig topologySpreadConstraints schedulingGates resourceClaims volumeMounts fieldRef resourceFieldRef configMapKeyRef secretKeyRef; do \
for key in securityContext volumes dnsPolicy affinity tolerations hostAliases dnsConfig topologySpreadConstraints schedulingGates resourceClaims volumeMounts fieldRef resourceFieldRef configMapKeyRef secretKeyRef pvcs matchExpressions matchLabels env envFrom readinessProbe; do \
yq --no-colors -i "del(.. | select(has(\"$$key\")).$$key | .. | select(has(\"description\")).description)" "config/crd/bases/$$file"; \
done; \
yq --no-colors -i \
Expand Down
Loading

0 comments on commit caf64a3

Please sign in to comment.