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
HIGH k8s & GKE is version 1.36.0 which is not supported by k8s-client java #4809
Describe the bug
As per the versioning support for this library is upto 1.35. But GKE and K8s release version 1.36. Because of that we are unable to run the spring boot application in 1.35 GKE/K8S. Getting below error.
j.l.IllegalArgumentException: The field `allocatedResources` in the JSON string is not defined in the `V1PodStatus` properties.
fwiw, while we are regenerating for 1.36, I'm curious about where/how you are seeing this error, because as far as I know the library should be resilient to unknown fields. Can you send the complete stack trace you are seeing.
fwiw, while we are regenerating for 1.36, I'm curious about where/how you are seeing this error, because as far as I know the library should be resilient to unknown fields. Can you send the complete stack trace you are seeing.
Hi @brendandburns we didn't put the rest of the exception because it is just specific details to our GKE cluster/application.
The exception froms from org.springframework.cloud.kubernetes.client.KubernetesClientHealthIndicator with the message Health check failed. Since the exception contains the V1PodStatus object, the string is clipped to the first 2000 characters are so which is the json string for the pod in GKE.
I was personally surprised myself that this is not tolerantly read.
What's even more interesting is, looking the the PR #4842 "allocatedResources" is defined even in the old V1PodStatus. There's some problem where using a new GKE version than this client is built with will always cause issues it seems. I'm not sure what the root issue is.
Thanks for the details, yeah, it looks like the new code generator isn't tolerant of unknown fields, I will see if there is a configuration setting which would allow it to be tolerant of unknown fields. Without that, I agree that there will be breaking changes like this that require version alignment.
I just pushed release 27.0.0 to sonatype, assuming things are working correctly, it should be visible in maven central in ~24h, but we've seen some issues (eg #4811) so I will check back in tomorrow and manually publish if it didn't work.
Activity
priyanshuvishwakarma273403 commentedon Jun 21, 2026
hi @maintainer could you please this issue assigned toh me??
thank you
rking-bennie commentedon Jun 25, 2026
I hope this is fixed soon.
brendandburns commentedon Jun 28, 2026
In progress in #4840
brendandburns commentedon Jun 28, 2026
fwiw, while we are regenerating for 1.36, I'm curious about where/how you are seeing this error, because as far as I know the library should be resilient to unknown fields. Can you send the complete stack trace you are seeing.
rking-bennie commentedon Jun 30, 2026
Hi @brendandburns we didn't put the rest of the exception because it is just specific details to our GKE cluster/application.
The exception froms from
org.springframework.cloud.kubernetes.client.KubernetesClientHealthIndicatorwith the messageHealth check failed. Since the exception contains the V1PodStatus object, the string is clipped to the first 2000 characters are so which is the json string for the pod in GKE.I was personally surprised myself that this is not tolerantly read.
rking-bennie commentedon Jun 30, 2026
@brendandburns this seems similar to the issue here: #3428 (comment)
What's even more interesting is, looking the the PR #4842 "allocatedResources" is defined even in the old V1PodStatus. There's some problem where using a new GKE version than this client is built with will always cause issues it seems. I'm not sure what the root issue is.
brendandburns commentedon Jul 1, 2026
Thanks for the details, yeah, it looks like the new code generator isn't tolerant of unknown fields, I will see if there is a configuration setting which would allow it to be tolerant of unknown fields. Without that, I agree that there will be breaking changes like this that require version alignment.
brendandburns commentedon Jul 1, 2026
I just pushed release 27.0.0 to sonatype, assuming things are working correctly, it should be visible in maven central in ~24h, but we've seen some issues (eg #4811) so I will check back in tomorrow and manually publish if it didn't work.
brendandburns commentedon Jul 2, 2026
https://central.sonatype.com/artifact/io.kubernetes/client-java/27.0.0
VasuHarness commentedon Nov 17, 2026
is this issue is there for the java client is 22.5