doctl icon indicating copy to clipboard operation
doctl copied to clipboard

kubernetes: support getting kubernetes cluster details with projects command

Open MorrisLaw opened this issue 5 years ago • 1 comments

Currently, we can doctl projects resources assign and doctl projects resources list the Kubernetes resource. But we can't run the doctl projects resources get do:doks:<cluster-uuid> command to get the details of the resource. We receive this error instead:

Error: "kubernetes" is an invalid resource type, consult the documentation
  • This PR attempts to add the get command so that Kubernetes cluster details are returned are returned just like when we run doctl kubernetes cluster get <cluster-uuid>.

Note for reviewers: marking this as WIP for now until I can test it locally.

MorrisLaw avatar Jan 28 '21 07:01 MorrisLaw

rebased

MorrisLaw avatar Mar 27 '21 10:03 MorrisLaw

The get cluster function uses the list cluster API endpoint and searches for the specific cluster by id or name. These added commits address this functionality within the project test get file.

ChiefMateStarbuck avatar Mar 28 '23 14:03 ChiefMateStarbuck