Closed timsmelik closed 1 month ago
Just updated to 20.0.1-legacy without issues, but we would still like the non-legacy version to work.
This is a duplicate of #3319, see the discussion there.
@timsmelik
per the API spec containers
is a required field in the PodSpec so it really can't be null. How (or why) are you creating a PodSpec with an empty list of containers?
@timsmelik
per the API spec
containers
is a required field in the PodSpec so it really can't be null. How (or why) are you creating a PodSpec with an empty list of containers?
That's the thing: we're not doing that. As I mentioned in the "Additional context" section, if I manually execute the same call from within the pod that is giving this error, using the same credentials the lib is using in io.kubernetes.client.util.Config
, I get a valid response with every item under items
containing a spec
field which always contains a containers
key with an array that holds a single container definition as value.
Describe the bug After upgrading from 19.0.0 to 20.0.0 we encounter the following error:
Client Version 20.0.0
Kubernetes Version 1.27.9
Java Version Java 17
To Reproduce
Deploy on a cluster running 1.27.9
Expected behavior No errors
KubeConfig N/A
Server (please complete the following information): Azure AKS
Additional context When manually calling the endpoint from within the pod, we get a valid response: a PodList. Every
items[].spec.containers
field contains an array of containers, not null. If specifics are needed, let me know. Unfortunately I am not allowed to share the entire response.