forked from rook/rook
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:
@@ -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
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user