Skip to content

Commit

Permalink
partial pick of f39394b
Browse files Browse the repository at this point in the history
Picked commit from rebase PR to kube 1.7
Commit: f39394b: handle printer changes
PR: openshift#15234
  • Loading branch information
juanvallejo committed Nov 7, 2017
1 parent cf73b40 commit 170648a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/cmd/cli/describe/printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ var (
securityContextConstraintsColumns = []string{"NAME", "PRIV", "CAPS", "SELINUX", "RUNASUSER", "FSGROUP", "SUPGROUP", "PRIORITY", "READONLYROOTFS", "VOLUMES"}
)

func init() {
// TODO this should be eliminated
kprinters.NewHumanReadablePrinterFn = NewHumanReadablePrinter
}

// NewHumanReadablePrinter returns a new HumanReadablePrinter
func NewHumanReadablePrinter(encoder runtime.Encoder, decoder runtime.Decoder, printOptions kprinters.PrintOptions) *kprinters.HumanReadablePrinter {
// TODO: support cross namespace listing
Expand Down

0 comments on commit 170648a

Please sign in to comment.