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

[Bug] Error "rayservices.ray.io" is invalid: metadata.annotations: Too long. when installing Ray Operator CRD #504

Closed
1 of 2 tasks
nilyin opened this issue Aug 24, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@nilyin
Copy link

nilyin commented Aug 24, 2022

Search before asking

  • I searched the issues and found no similar issues.

KubeRay Component

ray-operator

What happened + What you expected to happen

When installing CRD object with command below:

kubectl apply -k "github.com/ray-project/kuberay/ray-operator/config/crd?ref=v0.3.0"

I have got:

Resource: "apiextensions.k8s.io/v1, Resource=customresourcedefinitions", GroupVersionKind: "apiextensions.k8s.io/v1, Kind=CustomResourceDefinition" Name: "rayservices.ray.io", Namespace: "" for: "github.com/ray-project/kuberay/ray-operator/config/crd?ref=v0.3.0": CustomResourceDefinition.apiextensions.k8s.io "rayservices.ray.io" is invalid: metadata.annotations: Too long: must have at most 262144 bytes

Reproduction script

my configuration is as follows:

kubectl version Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.0", GitCommit:"af46c47ce925f4c4ad5cc8d1fca46c7b77d13b38", GitTreeState:"clean", BuildDate:"2020-12-08T17:59:43Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"darwin/amd64"} Server Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.3", GitCommit:"aef86a93758dc3cb2c658dd9657ab4ad4afc21cb", GitTreeState:"clean", BuildDate:"2022-07-13T14:23:26Z", GoVersion:"go1.18.3", Compiler:"gc", Platform:"linux/amd64"}

Anything else

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!
@nilyin nilyin added the bug Something isn't working label Aug 24, 2022
@nilyin nilyin changed the title [Bug] [Bug] Error "rayservices.ray.io" is invalid: metadata.annotations: Too long. when installing Ray Operator CRD Aug 24, 2022
@DmitriGekhtman
Copy link
Collaborator

This is a known issue -- you must kubectl create the CRD, not kubectl apply.
Closing as a duplicate of #271.

@nilyin
Copy link
Author

nilyin commented Aug 25, 2022

I see, thanks a lot. I was using Helm install guide from github readme page:
https://github.com/ray-project/kuberay/tree/master/helm-chart/kuberay-operator)

please correct the page with the command description.

@DmitriGekhtman
Copy link
Collaborator

PR to update the helm readme: #505

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

2 participants