java icon indicating copy to clipboard operation
java copied to clipboard

Create CRD model fail

Open LinzeSu opened this issue 2 years ago • 10 comments
trafficstars

Describe the bug Followed steps here: https://github.com/kubernetes-client/java/blob/master/docs/generate-model-from-third-party-resources.md. Have run both using Github Action and locally and failed with the same message (except for the directory part as they run in different place):

cp: can't stat '/home/runner/work/java/java/crd-gen/gen/src/main/java/com/hirain/adminapp/crd/models': No such file or directory

To Reproduce Run workflow with https://raw.githubusercontent.com/GoogleCloudPlatform/spark-on-k8s-operator/master/charts/spark-operator-chart/crds/sparkoperator.k8s.io_sparkapplications.yaml. And this error occurs.

Additional context I've been looking through similar issues and solutions but sadly none of them works. Including setting .spec.preserveUnknownFields to false(https://github.com/kubernetes-client/java/issues/1254) and change the .spec.group to another name(https://github.com/kubernetes-client/java/issues/1496).

LinzeSu avatar Feb 22 '23 07:02 LinzeSu