You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
field volumeMounts in the JSON string is not defined in the V1ContainerStatus #3980
java.lang.IllegalArgumentException: The field volumeMounts in the JSON string is not defined in the V1ContainerStatus properties. JSON: {"name":"dummy-job-container","state":{"waiting":{"reason":"ContainerCreating"}},"lastState":{},"ready":false,"restartCount":0,"image":"redacted","imageID":"","started":false,"volumeMounts":[{"name":"kube-api-access-tlhrb","mountPath":"/var/run/secrets/[kubernetes.io/serviceaccount](http://kubernetes.io/serviceaccount)","readOnly":true,"recursiveReadOnly":"Disabled"}]}
Client Version 20.0.1
Kubernetes Version 1.31.6-gke
Java Version
Java 11
To Reproduce
Use the client version with the k8s version and execute coreApi.listNamespacedPod(namespace).execute().getItems()
Please upgrade to Kubernetes 22.0.x or newer since you are using Kubernetes 1.31
As the document says, 20.0.0 has a + which indicates "java-client has features or api objects that may not be present in the Kubernetes cluster, but everything they have in common will work."
Please upgrade to Kubernetes 22.0.x or newer since you are using Kubernetes 1.31
As the document says, 20.0.0 has a + which indicates "java-client has features or api objects that may not be present in the Kubernetes cluster, but everything they have in common will work."
I think that field must have been added in 1.31
+1, Sounds reasonable, but is it possible to make java client compatible with newly added field such as volumeMounts in this issue by ignoring deserialization?
Activity
brendandburns commentedon Mar 17, 2025
Please upgrade to Kubernetes 22.0.x or newer since you are using Kubernetes 1.31
As the document says, 20.0.0 has a
+which indicates "java-client has features or api objects that may not be present in the Kubernetes cluster, but everything they have in common will work."I think that field must have been added in 1.31
esevan commentedon Mar 25, 2025
+1, Sounds reasonable, but is it possible to make java client compatible with newly added field such as
volumeMountsin this issue by ignoring deserialization?yanivkr commentedon Mar 26, 2025
Thanks, I've upgraded my Java client to resolve the issue but still think it would be better to ignore fields that are not present