mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 09:49:50 +00:00
Remove unused fields from YAMLPrinter struct
This commit is contained in:
parent
426ef9d349
commit
9fa7f46673
@ -68,10 +68,7 @@ func (p *JSONPrinter) PrintObj(obj runtime.Object, w io.Writer) error {
|
|||||||
// YAMLPrinter is an implementation of ResourcePrinter which outputs an object as YAML.
|
// YAMLPrinter is an implementation of ResourcePrinter which outputs an object as YAML.
|
||||||
// The input object is assumed to be in the internal version of an API and is converted
|
// The input object is assumed to be in the internal version of an API and is converted
|
||||||
// to the given version first.
|
// to the given version first.
|
||||||
type YAMLPrinter struct {
|
type YAMLPrinter struct{}
|
||||||
version string
|
|
||||||
converter runtime.ObjectConvertor
|
|
||||||
}
|
|
||||||
|
|
||||||
// PrintObj prints the data as YAML.
|
// PrintObj prints the data as YAML.
|
||||||
func (p *YAMLPrinter) PrintObj(obj runtime.Object, w io.Writer) error {
|
func (p *YAMLPrinter) PrintObj(obj runtime.Object, w io.Writer) error {
|
||||||
|
Loading…
Reference in New Issue
Block a user