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 authored Jul 5, 2023
1 parent 732a036 commit af50eec
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions 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 af50eec

Please sign in to comment.