Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom resource definition is too long #149

Closed
nicolaferraro opened this issue May 28, 2024 · 1 comment
Closed

Custom resource definition is too long #149

nicolaferraro opened this issue May 28, 2024 · 1 comment

Comments

@nicolaferraro
Copy link
Member

nicolaferraro commented May 28, 2024

When trying to apply latest CRDs, Kubernetes complains because of

The CustomResourceDefinition "redpandas.cluster.redpanda.com" is invalid: metadata.annotations: Too long: must have at most 262144 bytes

The reason seems to be that kubectl apply tries to write the content of the CRD into the kubernetes.io/last-applied-configuration annotation, failing for size limitation.

JIRA Link: K8S-239

@chrisseto
Copy link
Contributor

This was fixed/resolved by switching to using server side apply which doesn't require a last-applied annotation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants