-
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
When having Kubernetes extension + other Kubernetes based extensions together outputs lots of warnings during native build #34213
Comments
Attached is a reproducer: |
As an FYI, if i remove the direct dependency on the |
I think this issue got fixed using Fabric8 Kubernetes Client 6.7.2 (unless I can't see it anymore using Quarkus 999-SNAPSHOT):
About the rest of the warnings, I guess this is triggered by the Quarkus Kubernetes Client extension plus the Quarkus Tekton extension in the classpath: for some reason, the Quarkus Kubernetes Client extension tries to register those classes for reflection and they do not exist, but I could not see why it tries to register these classes, maybe @geoand can see it. |
The only way would be to debug the build-time code that performs the reflection registration |
Yes the Client should be registering any of the Line 150 in 8a06248
What I find weird is that these classes are not found. |
I'm also getting tons of warnings for missing classes in packages io.fabric8.openshift and io.fabric8.knative. I'm pulling in quarkus-kubernetes-config and quarkus-kubernetes, but nothing from openshift or knative AFAIK. These warnings were not present in Quarkus 2, the came with the upgrade to 3 just now. As long as it is only build time warnings it is not critical, but I don't like it. Perhaps they point to something that is wrong. |
@manusa did we make progress on this issue? We had another report today and, while not critical, it's not really pretty and people are asking about it. |
The split package issue was addressed by fabric8io/kubernetes-client#5113 (Is available on 6.8.0 - needs #34956) The other issues might have been solved too, but would need to properly check once we bump the Kubernetes Client dependency version (fabric8io/kubernetes-client#5345) |
Adding onto this thread. I've started seeing this in the Quarkus superheroes sample application with the upgrade from 3.5.3 -> 3.6.0. I had not seen this before 3.5.3. Also, it's only happening in 1 of the apps ( All of the apps use multiple kubernetes extensions ( See https://github.com/quarkusio/quarkus-super-heroes/actions/runs/7033441570/job/19139277699#step:6:5502 for the full log. All the apps in the superheroes sample are different apps. Most expose a rest interface. The one in question uses mongodb (with liquibase) & smallrye stork, which is different from any of the other apps. Smallrye Stork in turn uses the kubernetes client. This app also uses reactive messaging kafka, avro, & apicurio, but so does one of the other apps that does not seem to have this problem. |
This seems to be an issue with the What's interesting, though, is if I build with Java 21/GraalVM CE 21, I do not see the issue. Only with Java 17/GraalVM CE 17. |
From what I can see with the latest versions, the issue initially mentioned here has been fixed. |
Describe the bug
When introducing the Tekton extension into a Quarkus project the following occurs:
Split package during compile (
mvn install
):Unresolved classes during native build (
mvn package -Pnative
):This seems to differ depending on the packages included.
When just Tekton is involved it is less but if the Kubernetes extension also happens to be there it is far more (enough to bog down the CI logs).
Just Tekton:
With Kubernetes extension:
Expected behavior
Native builds produce minimal or no warnings or the warnings can somehow be filtered out.
Actual behavior
So many warnings it makes it hard to review the CI logs.
How to Reproduce?
Reproduce the error:
mvn package -Pnative
Not display all the warnings:
kubernetes
dependency from the POMmvn package -Pnative
Output of
uname -a
orver
No response
Output of
java -version
17
GraalVM version (if different from Java)
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)Maven 3.9
Additional information
This has not (or does not yet) seem to affect anything functionally.
The text was updated successfully, but these errors were encountered: