deploy

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(configFlags *genericclioptions.ConfigFlags) *cobra.Command

NewCommand return the command for deploying kubernetes resources against the target cluster

func NewInventory

func NewInventory(factory util.ClientFactory, name, namespace, filedManager string) (inventory.Store, error)

Types

type Flags

type Flags struct {
	ConfigFlags *genericclioptions.ConfigFlags
	// contains filtered or unexported fields
}

Flags contains all the flags for the `deploy` command. They will be converted to Options that contains all runtime options for the command.

func (*Flags) AddFlags

func (f *Flags) AddFlags(flags *pflag.FlagSet)

AddFlags set the connection between Flags property to command line flags

func (*Flags) ToOptions

func (f *Flags) ToOptions(reader io.Reader, writer io.Writer) (*Options, error)

ToOptions transform the command flags in command runtime arguments

type Inventory

type Inventory struct {
	// contains filtered or unexported fields
}

Inventory wrap

func (*Inventory) Delete

func (s *Inventory) Delete(ctx context.Context, dryRun bool) error

func (*Inventory) Load

func (*Inventory) Save

func (s *Inventory) Save(ctx context.Context, dryRun bool) error

func (*Inventory) SetObjects

func (s *Inventory) SetObjects(objects sets.Set[*unstructured.Unstructured])

type Options

type Options struct {
	// contains filtered or unexported fields
}

Options have the data required to perform the deploy operation

func (*Options) Run

func (o *Options) Run(ctx context.Context) error

Run execute the interpolate command

func (*Options) Validate

func (o *Options) Validate() error

Jump to

Keyboard shortcuts

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