Back to / pkg / kubectl / cmd / convert

package convert

Latest Go to latest
Published: Jun 26, 2020 | License: Apache-2.0 | Module:


func NewCmdConvert

func NewCmdConvert(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

NewCmdConvert creates a command object for the generic "convert" action, which translates the config file into a given version.

type ConvertOptions

type ConvertOptions struct {
	PrintFlags *genericclioptions.PrintFlags
	Printer    printers.ResourcePrinter

	OutputVersion string
	Namespace     string

	// contains filtered or unexported fields

ConvertOptions have the data required to perform the convert operation

func NewConvertOptions

func NewConvertOptions(ioStreams genericclioptions.IOStreams) *ConvertOptions

func (*ConvertOptions) Complete

func (o *ConvertOptions) Complete(f cmdutil.Factory, cmd *cobra.Command) (err error)

Complete collects information required to run Convert command from command line.

func (*ConvertOptions) RunConvert

func (o *ConvertOptions) RunConvert() error

RunConvert implements the generic Convert command

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier