init

package
v0.0.0-...-c7d747a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type ConfigureInventoryInfo

type ConfigureInventoryInfo struct {
	Pkg     *pkg.Pkg
	Factory k8scmdutil.Factory
	Quiet   bool

	Name        string
	InventoryID string
	RGFileName  string

	Force bool
}

ConfigureInventoryInfo contains the functionality for adding and updating the inventory information in the Kptfile.

func (*ConfigureInventoryInfo) Run

Run updates the inventory info in the package given by the Path.

type InvExistsError

type InvExistsError struct{}

InvExistsError defines new error when the inventory values have already been set on the Kptfile.

func (*InvExistsError) Error

func (i *InvExistsError) Error() string

type InvInKfExistsError

type InvInKfExistsError struct{}

InvInKfExistsError defines new error when the inventory values have already been set on the Kptfile and we will warn the user to migrate rather than init. This is part of kpt live STDIN work.

func (*InvInKfExistsError) Error

func (i *InvInKfExistsError) Error() string

type InvInRGExistsError

type InvInRGExistsError struct{}

InvInRGExistsError defines new error when the inventory values have already been set on the ResourceGroup file and we will warn the user to migrate rather than init. This is part of kpt live STDIN work.

func (*InvInRGExistsError) Error

func (i *InvInRGExistsError) Error() string

type Runner

type Runner struct {
	Command *cobra.Command

	Force       bool   // Set inventory values even if already set in Kptfile
	Name        string // Inventory object name
	RGFileName  string // resourcegroup object filename
	InventoryID string // Inventory object unique identifier label
	Quiet       bool   // Output message during initialization
	// contains filtered or unexported fields
}

func NewRunner

func NewRunner(ctx context.Context, factory k8scmdutil.Factory,
	ioStreams genericclioptions.IOStreams) *Runner

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL