dekorateio / dekorate

Tools for generating Kubernetes related manifests.
Apache License 2.0
471 stars 101 forks source link

NoSuchMethodError when trying dekorate on brand new Spring Boot project #1063

Open ajschutte opened 1 year ago

ajschutte commented 1 year ago

Tried out kubernetes-spring-starter 3.0.0. Looks like the starter is pulling in conflicting dependency versions.

Fatal error compiling: java.lang.NoSuchMethodError: 'io.fabric8.kubernetes.api.model.ServicePortFluent io.fabric8.kubernetes.api.model.ServicePortBuilder.withNewTargetPort(java.lang.Object)' -> [Help 1]

aureamunoz commented 1 year ago

Hi,

Do you have a reproducer?

Thank you

ajschutte commented 1 year ago

I can reproduce it when adding the Spring Boot starter to any of our Spring Boot projects. But I will create a stripped-down demo project as soon as I get a gap to share.

Thanks

On Tue, Sep 20, 2022 at 3:23 AM Aurea Muñoz Hernández < @.***> wrote:

Hi,

Do you have a reproducer?

Thank you

— Reply to this email directly, view it on GitHub https://github.com/dekorateio/dekorate/issues/1063#issuecomment-1251945502, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEUM7TVGO7473LLQ66QTB73V7FQ6PANCNFSM6AAAAAAQQEFMNI . You are receiving this because you authored the thread.Message ID: @.***>

iocanel commented 1 year ago

This is seems related to upgrading to kubernetes-client 6.0.0 where withNewTargetPort port was relplaced by withTargetPort

steve-todorov commented 1 year ago

I'm also hitting this issue. Has there been any work on this yet? Do you still need a reproducing repo?

aureamunoz commented 1 year ago

Hello, Do you have a reproducer?