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

failed sync for redis-operator to v0.18.0 : "redis.redis.redis.opstreelabs.in" is invalid: metadata.annotations: Too long #218

Open
RameshPSIT opened this issue Jul 24, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@RameshPSIT
Copy link

Does this issue reproduce with the latest release?
Yes

What did you do?
upgrading from 0.15.3 to 0.18.0

What did you see instead?

Failed sync attempt to 2fd0cc00eaca0bfc0b1eb247744e068fb2379007: one or more objects failed to apply, reason: [CustomResourceDefinition.apiextensions.k8s.io](https://customresourcedefinition.apiextensions.k8s.io/) "[redis.redis.redis.opstreelabs.in](https://redis.redis.redis.opstreelabs.in/)" is invalid: metadata.annotations: Too long: must have at most 262144 bytes,CustomResourceDefinition.apiextensions.k8s.io "[redisclusters.redis.redis.opstreelabs.in](https://redisclusters.redis.redis.opstreelabs.in/)" is invalid: metadata.annotations: Too long: must have at most 262144 bytes,CustomResourceDefinition.apiextensions.k8s.io "[redisreplications.redis.redis.opstreelabs.in](https://redisreplications.redis.redis.opstreelabs.in/)" is invalid: metadata.annotations: Too long: must have at most 262144 bytes

@RameshPSIT RameshPSIT added the bug Something isn't working label Jul 24, 2024
@drivebyer
Copy link
Contributor

try this argoproj/argo-cd#5704 (comment) @EdagPSIT

@zumbuschms
Copy link

zumbuschms commented Nov 29, 2024

I have encountered the same issue upgrading the CRDs from the 0.18.1 helm chart. The workaround you suggested does not work. The resource definitions are already defined and trying to create them just gives an error message that the defintions already exist. A following kubectl apply -f ./crds/redis.yaml results in the same error as reported by RameshPSIT.

It seems that kubectl apply tries to write the whole existing definition into the last-applied-configure annotation. This looks like the complete resource definition which ist way over 256K with all the comments.

I switched to kubectl replace to upgrade the CRDs:

kubectl replace -R -f .\redis-operator\crds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants