Merge pull request #3814 from kachick/fix-get-clusters-via-nerdctl

fix `kind get clusters` via nerdctl
This commit is contained in:
Kubernetes Prow Robot
2024-12-18 20:16:08 +01:00
committed by GitHub

View File

@@ -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 {