Amya28 commented on issue #2151:
URL: 
https://github.com/apache/logging-log4j2/issues/2151#issuecomment-1875016646

   > @Amya28,
   > 
   > thank you for the issue report. Currently `log4j-kubernetes` is compiled 
against version 5.12.4:
   > 
   > 
https://github.com/apache/logging-log4j2/blob/8469975a4f2b1f8f1bd4f25ca6d1989a52aefc1b/log4j-parent/pom.xml#L124
   > 
   > but it compiles fine up to version `6.1.1` of the Kubernetes libraries.
   > 
   > Kubernetes seems to have performed several breaking API changes in 
**minor** releases without waiting for a **major** release:
   > 
   > * in version `6.2.0` the method 
`io.fabric8.kubernetes.api.model.ObjectMeta#getClusterName` disappeared,
   > * as you noticed in version `6.5.0` the methods 
`io.fabric8.kubernetes.client.Config#getRollingTimeout` and 
`io.fabric8.kubernetes.client.ConfigBuilder#withRollingTimeout` disappeared.
   > 
   > I have reported the problem upstream.
   
   Thanks @ppkarwasz for the prompt reply. Yes, Kubernetes have performed 
several breaking API changes in their latest release. 
   
   But it does not seem that log4j-kubernetes is compiled against version 5.12.4
   The pom.xml of log4j-kubernetes does not specify the version tag and hence 
it is fetching the latest 'kubernetes-client' version. 
   
![kubernetes](https://github.com/apache/logging-log4j2/assets/155515173/b226dfcd-8050-468f-a377-d532a05c8e49)
   
   
   Dependency tree: 
   ```
   
   [INFO] +- org.apache.logging.log4j:log4j-kubernetes:jar:2.21.1:compile
   [INFO] |  \- io.fabric8:kubernetes-client:jar:6.9.2:compile
   [INFO] |     +- io.fabric8:kubernetes-client-api:jar:6.9.2:compile
   [INFO] |     |  +- io.fabric8:kubernetes-model-core:jar:6.9.2:compile
   [INFO] |     |  |  \- io.fabric8:kubernetes-model-common:jar:6.9.2:compile
   [INFO] |     |  +- io.fabric8:kubernetes-model-gatewayapi:jar:6.9.2:compile
   [INFO] |     |  +- io.fabric8:kubernetes-model-resource:jar:6.9.2:compile
   [INFO] |     |  +- io.fabric8:kubernetes-model-rbac:jar:6.9.2:compile
   [INFO] |     |  +- 
io.fabric8:kubernetes-model-admissionregistration:jar:6.9.2:compile
   [INFO] |     |  +- io.fabric8:kubernetes-model-apps:jar:6.9.2:compile
   [INFO] |     |  +- io.fabric8:kubernetes-model-autoscaling:jar:6.9.2:compile
   [INFO] |     |  +- 
io.fabric8:kubernetes-model-apiextensions:jar:6.9.2:compile
   [INFO] |     |  +- io.fabric8:kubernetes-model-batch:jar:6.9.2:compile
   [INFO] |     |  +- io.fabric8:kubernetes-model-certificates:jar:6.9.2:compile
   [INFO] |     |  +- io.fabric8:kubernetes-model-coordination:jar:6.9.2:compile
   [INFO] |     |  +- io.fabric8:kubernetes-model-discovery:jar:6.9.2:compile
   [INFO] |     |  +- io.fabric8:kubernetes-model-events:jar:6.9.2:compile
   [INFO] |     |  +- io.fabric8:kubernetes-model-extensions:jar:6.9.2:compile
   [INFO] |     |  +- io.fabric8:kubernetes-model-flowcontrol:jar:6.9.2:compile
   [INFO] |     |  +- io.fabric8:kubernetes-model-networking:jar:6.9.2:compile
   [INFO] |     |  +- io.fabric8:kubernetes-model-metrics:jar:6.9.2:compile
   [INFO] |     |  +- io.fabric8:kubernetes-model-policy:jar:6.9.2:compile
   [INFO] |     |  +- io.fabric8:kubernetes-model-scheduling:jar:6.9.2:compile
   [INFO] |     |  +- io.fabric8:kubernetes-model-storageclass:jar:6.9.2:compile
   [INFO] |     |  +- io.fabric8:kubernetes-model-node:jar:6.9.2:compile
   
   
   
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to