-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
"runners.actions.summerwind.dev" is invalid: metadata.annotations: Too long: must have at most 262144 bytes #1317
Comments
@ealasgarov Hey. This is a known issue in Kubernetes(and kubectl-apply) that results in that an annotation automatically generated for server-side apply results in exceeding the K8s' own limit. Try using |
Possibly duplicate of #1102 |
thanks a lot for comments, will try that! |
can we maybe change in the readme the |
@jonathanbeber do you happen to know if the I'm thinking about a scenario where the CRDs are already installed and we are upgrading to a new version which has changes to the CRDs. From my experience, The consequence of deleting the CRDs is that all the To your point, I think we need to update the docs given the size of the CRDs and |
@billimek In case you missed it, you can use |
Are there any solutions to work around this issue when using ArgoCD? Unfortunately it's not possible to change the underlying logic there and installing CRDs manually is not an option |
I don't think so outside of keeping custom version of the chart and adding the the If we produced the crds.yaml manifest as a single manifest attached to the GitHub release would that help at all? You could use the |
Also see #1391 and #1256 (comment), #1102 (comment) |
To me prometheus-operator/prometheus-operator#4439 (comment) looks like the best way; TL;DR; you can set the sync option via ArgoCD Application spec. |
I do think it would help to distribute the CRDs separately. |
I had the same issue and can confirm that the workaround shown here:
worked for me |
Try the option server-side kubectl apply -f xxx.yaml --server-side https://kubernetes.io/docs/reference/using-api/server-side-apply/ |
This worked perfectly for me. In my particular use case, I was running a github actions job that was just running the line:
And so following the instruction to use The A note, though; if you've already tried to install the CRDs via Personally, I just deleted them ( Another approach is to run YMMV |
Thank you everyone for reporting! I can confirm that |
Argocd users can follow this documentation entry: https://argo-cd.readthedocs.io/en/stable/user-guide/sync-options/#server-side-apply This syncPolicy works for me:
|
Describe the bug
When I'm installing actions-runner-controller with:
"kubectl apply -f https://github.com/actions-runner-controller/actions-runner-controller/releases/download/v0.22.2/actions-runner-controller.yaml" command
I am getting below error:
"Error from server (Invalid): error when creating "https://github.com/actions-runner-controller/actions-runner-controller/releases/download/v0.22.2/actions-runner-controller.yaml": CustomResourceDefinition.apiextensions.k8s.io "runners.actions.summerwind.dev" is invalid: metadata.annotations: Too long: must have at most 262144 bytes"
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Resources should be installed as described in the Readme
Screenshots
Environment (please complete the following information):
Additional context
I have downloaded that actions-runner-controller.yaml and I can see that custom resource definition has more than 30k lines, is that right?
The text was updated successfully, but these errors were encountered: