Question about Pod API #4494
-
Hello.
returns
returns It feels like inconsistency in API. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
A PodResource, or any class extending Resource, is an entry point for further operations - delete, get, patch, etc. that operate over / return an actual instance of the Pod. list is considered a similar operation - it returns the full response from the server, which includes the list metadata and actual instances. Are you looking for something like the KubernetesClient.resourceList(...).resources() method that returns a list of Resources? |
Beta Was this translation helpful? Give feedback.
A PodResource, or any class extending Resource, is an entry point for further operations - delete, get, patch, etc. that operate over / return an actual instance of the Pod.
list is considered a similar operation - it returns the full response from the server, which includes the list metadata and actual instances.
Are you looking for something like the KubernetesClient.resourceList(...).resources() method that returns a list of Resources?