Closed dada-engineer closed 3 months ago
@dada-engineer For client-side apply, it will fail since the definition of the whole CRD will be patched as an annotation, which exceeds the size limit. You can install the CRDs with kubectl create -f
:
kubectl create -f https://raw.githubusercontent.com/kubeflow/spark-operator/spark-operator-chart-1.4.4/charts/spark-operator-chart/crds/sparkoperator.k8s.io_sparkapplications.yaml
kubectl create -f https://raw.githubusercontent.com/kubeflow/spark-operator/spark-operator-chart-1.4.6/charts/spark-operator-chart/crds/sparkoperator.k8s.io_sparkapplications.yaml
Or use server-side apply:
kubectl apply --server-side -f https://raw.githubusercontent.com/kubeflow/spark-operator/spark-operator-chart-1.4.4/charts/spark-operator-chart/crds/sparkoperator.k8s.io_sparkapplications.yaml
kubectl apply --server-side -f https://raw.githubusercontent.com/kubeflow/spark-operator/spark-operator-chart-1.4.6/charts/spark-operator-chart/crds/sparkoperator.k8s.io_sparkapplications.yaml
Oh thanks a lot. this makes a lot of sense ❤️
Description
When Running the kubectl apply command to install custom resource definitions for spark-operator I get an error that metadata.annotations are too long. It worked in 1.4.4 of the chart but not in newer versions.
The error is:
The CustomResourceDefinition "sparkapplications.sparkoperator.k8s.io" is invalid: metadata.annotations: Too long: must have at most 262144 bytes
Reproduction Code [Required]
Steps to reproduce the behavior:
Execute the above statements in terminal
Expected behavior
The crds should be installable without an issue
Actual behavior
Installing CRDs fails hard
Environment & Versions