Skip to content

Commit 2c5b9ed

Browse files
updated apply with replace
skipped descrioption during creation of annotations updated according to PR review comments updated according to PR review comments
1 parent eb228bd commit 2c5b9ed

File tree

3 files changed

+14
-9901
lines changed

3 files changed

+14
-9901
lines changed

docs/book/src/multiversion-tutorial/testdata/project/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ help: ## Display this help.
4040

4141
.PHONY: manifests
4242
manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects.
43-
$(CONTROLLER_GEN) rbac:roleName=manager-role crd webhook paths="./..." output:crd:artifacts:config=config/crd/bases
43+
# Note that the option maxDescLen=0 was added in the default scaffold in order to sort out the issue
44+
# Too long: must have at most 262144 bytes. By using kubectl apply to create / update resources an annotation
45+
# is created by K8s API to store the latest version of the resource ( kubectl.kubernetes.io/last-applied-configuration).
46+
# 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.
47+
$(CONTROLLER_GEN) rbac:roleName=manager-role crd:maxDescLen=0 webhook paths="./..." output:crd:artifacts:config=config/crd/bases
4448

4549
.PHONY: generate
4650
generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.

0 commit comments

Comments
 (0)