manifest: shorten crd descriptions to 100 chars

Long CRD descriptions were pushing the size of the CRDs manifest
over 1MB, which causes issues when creating the CRDs. To shorten
the manifest, the descriptions are now limited to 100 chars.
This still gives some ability for dev tools to show a brief
description if needed. The generated CRD docs still contain
the full descriptions for reference.

Signed-off-by: travisn <tnielsen@redhat.com>
This commit is contained in:
travisn
2024-01-05 09:10:36 -07:00
parent f56f06f955
commit 3c1b0692e4
3 changed files with 3061 additions and 3061 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ set -o pipefail
SCRIPT_ROOT=$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd -P)
CONTROLLER_GEN_BIN_PATH=$1
YQ_BIN_PATH=$2
: "${MAX_DESC_LEN:=-1}"
: "${MAX_DESC_LEN:=100}"
# allowDangerousTypes is used to accept float64
CRD_OPTIONS="crd:maxDescLen=$MAX_DESC_LEN,generateEmbeddedObjectMeta=true,allowDangerousTypes=true"
File diff suppressed because it is too large Load Diff
+1530 -1530
View File
File diff suppressed because it is too large Load Diff