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

Add list clusters command #445

Open
nabuskey opened this issue Nov 9, 2024 · 4 comments
Open

Add list clusters command #445

nabuskey opened this issue Nov 9, 2024 · 4 comments

Comments

@nabuskey
Copy link
Collaborator

nabuskey commented Nov 9, 2024

Add the list command to:

  • List clusters across all providers
  • List their parameters. Host, port, etc
@cmoulliard

This comment was marked as duplicate.

@cmoulliard
Copy link
Contributor

  • List clusters across all providers

This is mandatory as until only docker provider is supported and we will got error using podman

failed to list clusters: failed to list clusters: command "docker ps -a --filter label=io.x-k8s.kind.cluster --format '{{.Label "io.x-k8s.kind.cluster"}}'" failed with error: exec: "docker": executable file not found in $PATH

cmoulliard added a commit to ch007m/fork-idpbuilder that referenced this issue Nov 14, 2024
… internal IP. Created a help function to create globally a kube client. cnoe-io#445

Signed-off-by: cmoulliard <[email protected]>
cmoulliard added a commit to ch007m/fork-idpbuilder that referenced this issue Nov 14, 2024
@cmoulliard
Copy link
Contributor

cmoulliard commented Nov 15, 2024

Question: Should we list the ports information as such (aka like on the container) ?

CONTAINER ID  IMAGE                           COMMAND     CREATED       STATUS       PORTS                                             NAMES
7299d0d75f41  docker.io/kindest/node:v1.30.3              9 hours ago   Up 9 hours   0.0.0.0:8443->443/tcp, 127.0.0.1:65073->6443/tcp  my-konflux-control-plane

@nabuskey
Copy link
Collaborator Author

Yeah we should print ports because we cannot bind to the port that's already used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants