Skip to content

Question about Pod API #4494

Answered by shawkins
sfc-gh-aivanou asked this question in Q&A
Discussion options

You must be logged in to vote

It feels like inconsistency in API.

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?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sfc-gh-aivanou
Comment options

Answer selected by sfc-gh-aivanou
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants