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

Are there any other ways to transfer large CRD files? #266

Open
xiaoyu1095 opened this issue Jun 28, 2024 · 5 comments
Open

Are there any other ways to transfer large CRD files? #266

xiaoyu1095 opened this issue Jun 28, 2024 · 5 comments
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@xiaoyu1095
Copy link

FILE="rayjobs.yaml"
GROUP_NAME="io.ray"
PACKAGE="io.ray"

docker run
--rm
-v pwd/src/main/resources/crd/${FILE}:pwd/src/main/resources/crd/${FILE}
-v /var/run/docker.sock:/var/run/docker.sock
-v /tmp/output:/tmp/output
-v "$(pwd)":"$(pwd)"
-ti
--network host
ghcr.io/kubernetes-client/java/crd-model-gen:v1.0.6
/generate.sh
-u pwd/src/main/resources/crd/${FILE}
-n ${GROUP_NAME}
-p ${PACKAGE}
-o "$(pwd)"

The CustomResourceDefinition "rayjobs.ray.io" is invalid: metadata.annotations: Too long: must have at most 262144 bytes
ps:
crd file : https://github.com/ray-project/kuberay/blob/master/ray-operator/config/crd/bases/ray.io_rayjobs.yaml

@brendandburns
Copy link
Contributor

I think something is going wrong with the parsing here. I looked at your CRD, the annotations field isn't that long, I'm wondering if the YAML is messed up somehow.

@xiaoyu1095
Copy link
Author

How is YAML transmitted? The file size is 1.2 MB, but Kubernetes label limits are usually 0.25 MB.

@brendandburns
Copy link
Contributor

Ahh, I think that we must be using kubectl apply somewhere. That tries to shove the old object representation into an annotation (which then triggers this)

If we switch to kubectl create in that script it probably will work correctly. I don't think there's any reason to use apply

Any chance you can try making that change and seeing if it works?

@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 8, 2024
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle rotten
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

4 participants