Skip to content

Commit

Permalink
Merge pull request #3814 from kachick/fix-get-clusters-via-nerdctl
Browse files Browse the repository at this point in the history
fix `kind get clusters` via nerdctl
  • Loading branch information
k8s-ci-robot authored Dec 18, 2024
2 parents f3a8344 + 836f3df commit 1c5a56b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cluster/internal/providers/nerdctl/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1c5a56b

Please sign in to comment.