Merge branch 'main' of github.com:rancher/k3d into main

This commit is contained in:
iwilltry42 2021-03-05 14:53:49 +01:00
commit 2fe56a9732
No known key found for this signature in database
GPG Key ID: 7BA57AD1CFF16110

View File

@ -82,7 +82,7 @@ func NewCmdRegistryList() *cobra.Command {
// print existing registries
headers := &[]string{}
if !registryListFlags.noHeader {
headers = &[]string{"NAME", "ROLE", "CLUSTER"} // TODO: add status
headers = &[]string{"NAME", "ROLE", "CLUSTER", "STATUS"}
}
util.PrintNodes(existingNodes, registryListFlags.output,
@ -91,10 +91,11 @@ func NewCmdRegistryList() *cobra.Command {
if _, ok := node.Labels[k3d.LabelClusterName]; ok {
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, "/"),
string(node.Role),
cluster,
node.State.Status,
)
}),
)