Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API for Interacting with Docker Desktop Managed Kubernetes #181

Open
gilday opened this issue May 27, 2022 · 3 comments
Open

API for Interacting with Docker Desktop Managed Kubernetes #181

gilday opened this issue May 27, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@gilday
Copy link

gilday commented May 27, 2022

How might an extension be able to interact with the Docker Desktop Kubenetes cluster (when one exists)?

Comments in the Extension SDK source show using ddClient.extension.host.cli.exec to invoke kubectl on the host, provided the kubectl binary is shipped as part of your extension. Would this be the recommended way to interact with the Docker Desktop managed Kubernetes cluster from an extension?

@gilday gilday changed the title Kubernetes Client API for Interacting with Docker Desktop Managed Kubernetes May 27, 2022
@felipecruz91
Copy link
Contributor

Hi @gilday, as of today there are no API methods available to interact with the Docker Desktop Kubernetes cluster.

If your extension needs to interact with Kubernetes clusters, then include the kubectl binary as part of your extension. You can find an example here.

@erulabs
Copy link

erulabs commented May 30, 2022

@felipecruz91 Hello! An api for enabling Kubernetes on docker-desktop would enable a lot of functionality and ease-of-use. The use case is:

  • user clicks extension store
  • user finds useful extension, but it requires Kubernetes
  • user clicks "install extension" and we can enable Kubernetes for them if it is not already enabled
  • extension can then use kubectl normally as explained in the docs

Thank you!

@gilday
Copy link
Author

gilday commented Jun 7, 2022

A navigation intent for directing users to the Kubernetes preferences would be helpful too.

@benja-M-1 benja-M-1 added the enhancement New feature or request label Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants