question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

java crd generate not working

See original GitHub issue

Describe the bug

crd to java pojo , some error when use java pojo

Fabric8 Kubernetes Client version

5.10.1@latest

Steps to reproduce

crd files https://github.com/karmada-io/karmada/tree/master/charts/_crds/bases

ls ~/project/karmada/charts/_crds/bases|xargs -I{} java-gen -crd bases/{} -dest /tmp/test

Expected behavior

project/karmada-java-client/target/classes/generated/io/karmada/work/v1alpha2/ResourceBindingSpecFluentImpl.java:19:78 java: 找不到符号 符号: 类 ResourceBindingSpecFluent 位置: 程序包 io.karmada.work.v1alpha2

Runtime

Kubernetes (vanilla)

Kubernetes API Server version

1.20.12

Environment

macOS

Fabric8 Kubernetes Client Logs

No response

Additional context

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
chestarsscommented, Feb 10, 2022

@chestarss the problem is in your build configuration, not related to anything produced by this repository.

You can find here a minimal example that shows the “karmada” generated code does compile: https://github.com/andreaTP/example_karmada

and can be used as expected: https://github.com/andreaTP/example_karmada/blob/main/src/main/java/Main.java

thank you very much

1reaction
andreaTPcommented, Feb 9, 2022

@chestarss the problem is in your build configuration, not related to anything produced by this repository.

You can find here a minimal example that shows the “karmada” generated code does compile: https://github.com/andreaTP/example_karmada

and can be used as expected: https://github.com/andreaTP/example_karmada/blob/main/src/main/java/Main.java

Read more comments on GitHub >

github_iconTop Results From Across the Web

CRD Generation seems to have broken · Issue #1915 - GitHub
CI/CD for CRD generation is failing with the following error: ... Not sure why this is suddenly failing since it looks like there...
Read more >
CRD creation with java-client for Kubernetes - Stack Overflow
Yes, But not only with java client. So first use some lib to read yaml and convert it to JSON. And then USe...
Read more >
Using sample Operators - java-operator-sdk
Automatic generation of CRDs #. To automatically generate CRD manifests from your annotated Custom Resource classes, you only need to add the following ......
Read more >
Part 2: How to Create a Spring Boot Kubernetes Controller
In my earlier article here, we saw how we can create a Kubernetes Custom Resource Definition (CRD) and deploy it to a Kubernetes...
Read more >
New HTTP clients, a Java generator, and more in Fabric8 6.0.0
The Fabric8 Kubernetes client has been simplifying Java ... In 6.0, several issues have been addressed, including #3407 and #3973, that make ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found