mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-06 16:06:51 +00:00
Merge pull request #42285 from liggitt/get-watch
Automatic merge from submit-queue (batch tested with PRs 41919, 41149, 42350, 42351, 42285) Fix error printing objects from kubectl get -w Fixes #42276
This commit is contained in:
@@ -416,7 +416,7 @@ func (f *ring0Factory) SuggestedPodTemplateResources() []schema.GroupResource {
|
||||
}
|
||||
|
||||
func (f *ring0Factory) Printer(mapping *meta.RESTMapping, options printers.PrintOptions) (printers.ResourcePrinter, error) {
|
||||
p := printers.NewHumanReadablePrinter(options)
|
||||
p := printers.NewHumanReadablePrinter(f.JSONEncoder(), f.Decoder(true), options)
|
||||
printersinternal.AddHandlers(p)
|
||||
return p, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user