Merge branch 'main' of github.com:rancher/k3d into main
This commit is contained in:
commit
2fe56a9732
@ -82,7 +82,7 @@ func NewCmdRegistryList() *cobra.Command {
|
|||||||
// print existing registries
|
// print existing registries
|
||||||
headers := &[]string{}
|
headers := &[]string{}
|
||||||
if !registryListFlags.noHeader {
|
if !registryListFlags.noHeader {
|
||||||
headers = &[]string{"NAME", "ROLE", "CLUSTER"} // TODO: add status
|
headers = &[]string{"NAME", "ROLE", "CLUSTER", "STATUS"}
|
||||||
}
|
}
|
||||||
|
|
||||||
util.PrintNodes(existingNodes, registryListFlags.output,
|
util.PrintNodes(existingNodes, registryListFlags.output,
|
||||||
@ -91,10 +91,11 @@ func NewCmdRegistryList() *cobra.Command {
|
|||||||
if _, ok := node.Labels[k3d.LabelClusterName]; ok {
|
if _, ok := node.Labels[k3d.LabelClusterName]; ok {
|
||||||
cluster = node.Labels[k3d.LabelClusterName]
|
cluster = node.Labels[k3d.LabelClusterName]
|
||||||
}
|
}
|
||||||
fmt.Fprintf(tabwriter, "%s\t%s\t%s\n",
|
fmt.Fprintf(tabwriter, "%s\t%s\t%s\t%s\n",
|
||||||
strings.TrimPrefix(node.Name, "/"),
|
strings.TrimPrefix(node.Name, "/"),
|
||||||
string(node.Role),
|
string(node.Role),
|
||||||
cluster,
|
cluster,
|
||||||
|
node.State.Status,
|
||||||
)
|
)
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user