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 genericiooptions.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
	genericiooptions.IOStreams
	// contains filtered or unexported fields
}

ConvertOptions have the data required to perform the convert operation

func NewConvertOptions

func NewConvertOptions(ioStreams genericiooptions.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.33.0 (latest)
Published
Apr 23, 2025
Platform
linux/amd64
Imports
40 packages
Last checked
3 hours ago

Tools for package owners.