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
It is possible that a service does not have any endpoint, for example, when the corresponding deployment was scaled to zero. In this case, the EndpointSlice API returns endpoints: null. However, it will be rejected by the following validation rule:
thrownewIllegalArgumentException(String.format("Expected the field `endpoints` to be an array in the JSON string but got `%s`", jsonObj.get("endpoints").toString()));
Describe the bug
It is possible that a service does not have any endpoint, for example, when the corresponding deployment was scaled to zero. In this case, the
EndpointSlice
API returnsendpoints: null
. However, it will be rejected by the following validation rule:java/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSlice.java
Lines 329 to 332 in cbd3d1b
Client Version
20.0.1
Kubernetes Version
1.29.0-eks-c417bb3
Java Version
Java 21
To Reproduce
Steps to reproduce the behavior:
endpoints
field will be null:Expected behavior
Kubectl.get(V1EndpointSlice.class)
would not throwIllegalArgumentException
.Server (please complete the following information):
The text was updated successfully, but these errors were encountered: