mirror of
https://github.com/kubernetes-sigs/kind.git
synced 2025-12-01 07:26:05 +07:00
Merge pull request #3814 from kachick/fix-get-clusters-via-nerdctl
fix `kind get clusters` via nerdctl
This commit is contained in:
@@ -125,7 +125,7 @@ func (p *provider) ListClusters() ([]string, error) {
|
||||
// filter for nodes with the cluster label
|
||||
"--filter", "label="+clusterLabelKey,
|
||||
// format to include the cluster name
|
||||
"--format", fmt.Sprintf(`{{index .Labels "%s"}}`, clusterLabelKey),
|
||||
"--format", fmt.Sprintf(`{{.Label "%s"}}`, clusterLabelKey),
|
||||
)
|
||||
lines, err := exec.OutputLines(cmd)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user