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

CustomResourceDefinition.apiextensions.k8s.io "scaledjobs.keda.sh" is invalid: metadata.annotations: Too long: must have at most 262144 bytes #580

Closed
teebu opened this issue Dec 1, 2023 · 2 comments

Comments

@teebu
Copy link

teebu commented Dec 1, 2023

I should state that is not a bug and probably not the right place for this.

NOTE: this issue is related to ArgoCD and how charts get applied - but why does it have to be so large?
argoproj/argo-cd#820

The scaledjobs.keda.sh seems to be reaching some size limits. I'm not sure who or what sets those limits.

I'm going from v2.7.0 where the crd has roughly 4000 lines
https://github.com/kedacore/charts/blob/v2.7.0/keda/templates/03-crd-scaledjobs.keda.sh.yaml
to 2.12.0 which has over 8000 lines and almost a megabyte is size.
https://github.com/kedacore/charts/blob/v2.12.0/keda/templates/crds/crd-scaledjobs.yaml

Expected Behavior

I expect it to sync and work without issues.

Actual Behavior

SyncError
Failed sync attempt to 89b6e62d3659e6d9902cca2d1ef6625cff396e40: one or more objects failed to apply, reason: CustomResourceDefinition.apiextensions.k8s.io "scaledjobs.keda.sh" is invalid: metadata.annotations: Too long: must have at most 262144 bytes

Steps to Reproduce the Problem

  1. Using the template files with Argocd
  2. Sync the chart

Specifications

  • KEDA Version: 2.12.0
  • Platform & Version: Please elaborate
  • Kubernetes Version: 1.26.6 on Azure
  • Scaler(s): Please elaborate
@teebu teebu added the bug Something isn't working label Dec 1, 2023
@tomkerkhove
Copy link
Member

It looks like your annotations are too big on the scaled object: metadata.annotations: Too long: must have at most 262144 bytes

@zroubalik
Copy link
Member

Duplicate of kedacore/keda#5245

Use server side apply.

@zroubalik zroubalik removed the bug Something isn't working label Dec 4, 2023
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

3 participants