Skip to content

Commit

Permalink
feat: kbcli support to show addon provider (#4075)
Browse files Browse the repository at this point in the history
  • Loading branch information
1aal committed Jul 5, 2023
1 parent 6d32009 commit ddbdb88
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions internal/cli/cmd/addon/addon.go
Original file line number Diff line number Diff line change
Expand Up @@ -824,19 +824,22 @@ func addonListRun(o *list.ListOptions) error {
selectors = addon.Spec.Installable.GetSelectorsStrings()
autoInstall = addon.Spec.Installable.AutoInstall
}
label := obj.GetLabels()
provider := label[constant.AddonProviderLabelKey]
tbl.AddRow(addon.Name,
addon.Spec.Type,
provider,
addon.Status.Phase,
strings.Join(extraNames, ","),
autoInstall,
strings.Join(selectors, ";"),
strings.Join(extraNames, ","),
)
}
return nil
}

if err = printer.PrintTable(o.Out, nil, printRows,
"NAME", "TYPE", "STATUS", "EXTRAS", "AUTO-INSTALL", "AUTO-INSTALLABLE-SELECTOR"); err != nil {
"NAME", "TYPE", "PROVIDER", "STATUS", "AUTO-INSTALL", "AUTO-INSTALLABLE-SELECTOR", "EXTRAS"); err != nil {
return err
}
return nil
Expand Down

0 comments on commit ddbdb88

Please sign in to comment.