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

install-crd make command does not work #2386

Open
1 task done
nabuskey opened this issue Jan 15, 2025 · 0 comments · May be fixed by #2412
Open
1 task done

install-crd make command does not work #2386

nabuskey opened this issue Jan 15, 2025 · 0 comments · May be fixed by #2412
Labels
kind/bug Something isn't working

Comments

@nabuskey
Copy link
Contributor

nabuskey commented Jan 15, 2025

What happened?

  • ✋ I have searched the open/closed issues and my issue is not listed.
$ make install-crd
Error from server (Invalid): error when creating "STDIN": CustomResourceDefinition.apiextensions.k8s.io "scheduledsparkapplications.sparkoperator.k8s.io" is invalid: metadata.annotations: Too long: may not be more than 262144 bytes
Error from server (Invalid): error when creating "STDIN": CustomResourceDefinition.apiextensions.k8s.io "sparkapplications.sparkoperator.k8s.io" is invalid: metadata.annotations: Too long: may not be more than 262144 bytes
make: *** [Makefile:271: install-crd] Error 1

install-crd uses kubectl apply and the annotation value is too large to store due to the size of CRDs.

https://github.com/kubeflow/spark-operator/blob/e6c2337e028085479b6b23ec2c1f78f51659a3bb/Makefile#L269C1-L271C55

Create and replace work so consider switching to it. Happy to open a PR.

kubectl kustomize config/crd/  | kubectl create -f -

Additionally make deploy does not work. It references a non-existent directory.

bash: line 1: cd: config/manager: No such file or directory
make: *** [Makefile:279: deploy] Error

Reproduction Code

From the root of this repository, run:

make install-crd

Expected behavior

It should install CRDs

Actual behavior

No response

Environment & Versions

  • Kubernetes Version: 1.32.0
  • Spark Operator Version: main
  • Apache Spark Version: n/a

Additional context

No response

Impacted by this bug?

Give it a 👍 We prioritize the issues with most 👍

@nabuskey nabuskey added the kind/bug Something isn't working label Jan 15, 2025
@nabuskey nabuskey linked a pull request Jan 28, 2025 that will close this issue
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant