Skip to content

Commit

Permalink
Update docs/book/src/faq.md
Browse files Browse the repository at this point in the history
Co-authored-by: Camila Macedo <7708031+camilamacedo86@users.noreply.github.com>
  • Loading branch information
Sajiyah-Salat and camilamacedo86 committed Sep 4, 2023
1 parent 42d3ac4 commit cff8e95
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion docs/book/src/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ Your CRDs are generated using [controller-gen][controller-gen]. By using the opt
# is created by K8s API to store the latest version of the resource ( kubectl.kubernetes.io/last-applied-configuration).
# However, it has a size limit and if the CRD is too big with so many long descriptions as this one it will cause the failure.
$(CONTROLLER_GEN) rbac:roleName=manager-role crd:maxDescLen=0 webhook paths="./..." output:crd:artifacts:config=config/crd/bases

You can review the design of your APIs and see if it has not more specs than should be by hurting single responsibility principle for example. So that you might to re-design them.

Instead of Kubectl create command use Kubectl apply and it will work because kubectl create will send the request at once and it will fail while kubect apply send the request in small chunks so the desc len will be divided.
Expand Down

0 comments on commit cff8e95

Please sign in to comment.