-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
quarkus-kubernetes java.lang.ClassNotFoundException: io.fabric8.kubernetes.api.model.GenericKubernetesResourceBuilder #19379
Comments
/cc @geoand |
cc @iocanel |
Don't you need something like https://github.com/snowdrop/istio-java-api also to support the Istio resources? Maybe @metacosm may help here? |
well, I guess there are 2 ways to solve the issue:
I guess you suggest option 2 @gastaldi ? |
How can I help with this? JKube seems to work with Istio. How would we go about solving option 2? I'm not sure why GenericKubernetesResourceBuilder is not generated in this case. I think most of us would be happy with just being able to include a yaml file that is included, with no annotations and properties support. |
cc @metacosm |
If I get some pointers I can try to make a pull request, or should this be fixed in fabric8? |
I think this is a reasonable alternative since it will allow custom resources to be added to the Another alternative is to add an extension point for users to add their own builders/model for custom resources. |
This can be made to work, by adding the Users reported success with: https://github.com/snowdrop/istio-java-api. This is a work around, the real solution is to change the |
Describe the bug
The extension
quarkus-kubernetes
fails if I add a custom resource insrc/main/kubernetes/kubernetes.yml
with :Expected behavior
If I save this manifest in
src/main/kubernetes/kubernetes.yml
, the extension should concatenate this additionnal Kubernetes resource to the file located at:target/kubernetes/kubernetes.yml
Actual behavior
If I save this manifest in
src/main/kubernetes/kubernetes.yml
, the extension will consider it and then failsHow to Reproduce?
Using the extension:
I was able to successfully generate
Service
andDeployment
resources in a file located intarget/kubernetes/kubernetes.yml
In my deployment environment, I also need to an Istio resource, that's looking like this:
Output of
uname -a
orver
Darwin [email protected] 19.6.0 Darwin Kernel Version 19.6.0: Thu May 6 00:48:39 PDT 2021; root:xnu-6153.141.33~1/RELEASE_X86_64 x86_64
Output of
java -version
openjdk version "16.0.1" 2021-04-20 OpenJDK Runtime Environment AdoptOpenJDK-16.0.1+9 (build 16.0.1+9) OpenJDK 64-Bit Server VM AdoptOpenJDK-16.0.1+9 (build 16.0.1+9, mixed mode, sharing)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.1.2.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.1 (05c21c65bdfed0f71a2f2ada8b84da59348c4c5d)
Additional information
No response
The text was updated successfully, but these errors were encountered: