Skip to content

Commit

Permalink
crd: reduce CRD size
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
  • Loading branch information
AlexanderYastrebov committed Jun 14, 2023
1 parent 5d0741f commit ab6b7a3
Show file tree
Hide file tree
Showing 4 changed files with 109 additions and 757 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ $(GENERATED): go.mod $(CRD_TYPE_SOURCE)

$(GENERATED_CRDS): $(GENERATED) $(CRD_SOURCES)
go run sigs.k8s.io/controller-tools/cmd/controller-gen crd:crdVersions=v1,allowDangerousTypes=true paths=./pkg/apis/... output:crd:dir=docs || /bin/true || true
mv docs/zalando.org_stacksets.yaml docs/stackset_crd.yaml
mv docs/zalando.org_stacks.yaml docs/stack_crd.yaml
go run hack/crd/trim.go < docs/zalando.org_stacksets.yaml > docs/stackset_crd.yaml
go run hack/crd/trim.go < docs/zalando.org_stacks.yaml > docs/stack_crd.yaml
rm docs/zalando.org_stacksets.yaml docs/zalando.org_stacks.yaml

build.local: $(LOCAL_BINARIES) $(GENERATED_CRDS)
build.linux: $(LINUX_BINARIES)
Expand Down
Loading

0 comments on commit ab6b7a3

Please sign in to comment.