apply

package
v0.0.0-...-b916d0e Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApplyExample = `
# Import a cluster
%[1]s --values values.yaml
`

Functions

func ConvertValuesFileToValuesMap

func ConvertValuesFileToValuesMap(path, prefix string) (values map[string]interface{}, err error)

Types

type ApplyOptions

type ApplyOptions struct {
	ConfigFlags *genericclioptions.ConfigFlags

	OutFile    string
	Directory  string
	ValuesPath string
	DryRun     bool
	Prefix     string
	Delete     bool
	Timeout    int
	Force      bool
	Silent     bool

	genericclioptions.IOStreams
}

func NewApplierOptions

func NewApplierOptions(streams genericclioptions.IOStreams) *ApplyOptions

func (*ApplyOptions) AddFlags

func (o *ApplyOptions) AddFlags(flagSet *pflag.FlagSet)

AddFlags returns a flagset

func (*ApplyOptions) Apply

func (o *ApplyOptions) Apply() (err error)

Apply applies the resources

func (*ApplyOptions) ApplyWithValues

func (o *ApplyOptions) ApplyWithValues(templateReader templateprocessor.TemplateReader, path string, values map[string]interface{}) (err error)

func (*ApplyOptions) CheckOptions

func (o *ApplyOptions) CheckOptions() error

CheckOptions checks the options

func (*ApplyOptions) Complete

func (o *ApplyOptions) Complete(cmd *cobra.Command, args []string) error

Complete retrieve missing options

func (*ApplyOptions) Run

func (o *ApplyOptions) Run() error

Run runs the commands

func (*ApplyOptions) Validate

func (o *ApplyOptions) Validate() error

Validate validates the options

Jump to

Keyboard shortcuts

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