apply

package
v0.0.384 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Dir              string
	PullRequest      bool
	GitClient        gitclient.Interface
	CommandRunner    cmdrunner.CommandRunner
	GitCommandRunner cmdrunner.CommandRunner
}

KptOptions the options for the command

func NewCmdApply

func NewCmdApply() (*cobra.Command, *Options)

NewCmdApply creates a command object for the command

func (*Options) Regenerate

func (o *Options) Regenerate() (bool, error)

Regenerate regenerates the kubernetes resources

func (*Options) Run

func (o *Options) Run() error

Run implements the command

func (*Options) RunCommand

func (o *Options) RunCommand(c *cmdrunner.Command) error

Run runs the command

func (*Options) Validate

func (o *Options) Validate() error

Validate validates the setup

Jump to

Keyboard shortcuts

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