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
CRD Generator Annotation Issues with v6 RC1 #4256
Comments
Same issue with 6.0.0 |
@csviri would you mind to elaborate? |
Maybe @iocanel could tell more. But afik that was the conclusion at the end, that is probably something with shading. |
Issue might be caused by the version bump in maven-shade-plugin (#4020) The generated I understand that providing a more detailed configuration would solve the issue: kubernetes-client/crd-generator/apt/pom.xml Lines 60 to 73 in 97c68b9
|
Anyone knows why was a shading configuration provided in the first place? |
I can reproduce and the bump of the shading plugin is really causing this issue. I "think" that shading was added because the Entierly removing the shading configuration fixes the problem for the java-operator-sdk codebase. Additional note, I cannot observe any difference in the |
The shading configuration was there originally when the generator was part of dekorate. In dekorate we decided to optionally split |
BTW, dekorate uses shading plugin version 3.0.0 and we don't have this issue. |
Yup, the bump is from 3.2 to 3.3, so I assume 3.0 shouldn't be affected.
If there's no real purpose for adding shading (I can't think of any), I would remove it. There's also shading configuration for
My understanding is that the deploy phase now selects/pushes the dependency reduced pom instead of the regular pom. |
@manusa unfortunately the |
👍 This means that in this case the usage of the shade plugin is justified. |
Describe the bug
When tried to use version v6 R1, got an error for annotation processor that generates CRD-s:
Fabric8 Kubernetes Client version
6.0.0-RC1
Steps to reproduce
Check out this build:
https://github.com/java-operator-sdk/admission-controller-framework/runs/7211447592?check_suite_focus=true
it's very simple project where a minimalist custom resource is defined.
or in Java Operator SDK:
operator-framework/java-operator-sdk#1305
Expected behavior
CRD is generated, no error.
Runtime
Build with Java 11
Kubernetes API Server version
1.22.3@latest
Environment
Linux
Fabric8 Kubernetes Client Logs
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: