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

Java generator does not recognize fields in CRDs other than metadata, spec, and status #6214

Closed
Javatar81 opened this issue Aug 1, 2024 · 1 comment · Fixed by #6216
Closed

Comments

@Javatar81
Copy link
Contributor

Javatar81 commented Aug 1, 2024

Describe the bug

If a CRD defines a top level field (a field that is a sibling of spec, metadata, and status). The java generator does not generate the properties to the CRD Java class.

Fabric8 Kubernetes Client version

6.12.1

Steps to reproduce

  1. Download https://raw.githubusercontent.com/argoproj/argo-cd/master/manifests/crds/application-crd.yaml and copy to your project
  2. Add java-generator-maven-plugin to your pom.xml
  3. Set configuration.source to the path the CRD from Step 1 has been copied to
  4. mvn install
  5. The folder target/generated-sources/java will contain io.argoproj.v1alpha1.Application. This class does not contain getter/setter nor a field for operation

Expected behavior

The top level fields should exist in the generated CR class.

Runtime

OpenShift

Kubernetes API Server version

other (please specify in additional context)

Environment

macOS

Fabric8 Kubernetes Client Logs

No response

Additional context

Kubernetes version: v1.28.11

@Javatar81
Copy link
Contributor Author

I will try provide a fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants