kubernetesk8s.io/kubernetes/pkg/kubectl/cmd/convert Index | Files

package convert

import "k8s.io/kubernetes/pkg/kubectl/cmd/convert"

Index

Functions

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.

Types

type ConvertOptions

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

	OutputVersion string
	Namespace     string

	resource.FilenameOptions
	genericclioptions.IOStreams
	// 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

Source Files

convert.go import_known_versions.go

Version
v1.14.6
Published
Aug 16, 2019
Platform
js/wasm
Imports
30 packages
Last checked
12 seconds ago

Tools for package owners.