helm

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHelmChartPathOptionsFlags

func AddHelmChartPathOptionsFlags(cmd *cobra.Command)

func AddHelmHooksFlags

func AddHelmHooksFlags(cmd *cobra.Command)

func AddHelmInstallFlags

func AddHelmInstallFlags(cmd *cobra.Command)

func AddHelmTemplateFlags

func AddHelmTemplateFlags(cmd *cobra.Command)

func AddHelmTimeoutFlags

func AddHelmTimeoutFlags(cmd *cobra.Command)

func AddHelmUninstallFlags

func AddHelmUninstallFlags(cmd *cobra.Command)

func AddHelmUpgradeFlags

func AddHelmUpgradeFlags(cmd *cobra.Command)

func AddHelmUpgradeInstallCommonFlags

func AddHelmUpgradeInstallCommonFlags(cmd *cobra.Command)

func SplitSortManifest

func SplitSortManifest(bigManifest string) ([]string, error)

Types

type Helm

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

Helm encabsules a single helm instance

func New

func New(options Options, settings *cli.EnvSettings, log logrus.FieldLogger) (*Helm, error)

New returns a new helm instance

func NewWithGetter

func NewWithGetter(options Options, settings *cli.EnvSettings, getter *inventory.Kubeconfig, log logrus.FieldLogger) (*Helm, error)

NewWithGetter returns a new helm instance that uses the provided getter to retrieve kubeconfigs

func (*Helm) ActionConfig

func (h *Helm) ActionConfig(namespace string) (*action.Configuration, error)

func (*Helm) DeployPlay

func (h *Helm) DeployPlay(play *config.Play) ([]*release.Release, error)

DeployPlay renders all charts contained in a given play to a string containing kubernetes manifests

func (*Helm) RepoAdd

func (h *Helm) RepoAdd(name string, url string) error

func (*Helm) TemplatePlay

func (h *Helm) TemplatePlay(play *config.Play) (string, error)

TemplatePlay renders all charts contained in a given play to a string containing kubernetes manifests

func (*Helm) UninstallPlay

func (h *Helm) UninstallPlay(play *config.Play) ([]string, error)

type Options

type Options struct {
	CreateNamespace          bool
	DryRun                   bool
	NoHooks                  bool
	Replace                  bool
	Timeout                  time.Duration
	Wait                     bool
	WaitForJobs              bool
	DepdencyUpdate           bool
	DisableOpenAPIValidation bool
	Atomic                   bool
	SkipCRDs                 bool
	RenderSubChartNotes      bool
	Verify                   bool
	Keyring                  string
	Validate                 bool
	IncludeCRDs              bool
	ExtraAPIs                []string
	Force                    bool
	ResetValues              bool
	ReuseValues              bool
	HistoryMax               int
	CleanupOnFail            bool
	KeepHistory              bool
}

Options holds all (relevant) helm cli options

func NewOptions

func NewOptions(viper *viper.Viper) Options

Jump to

Keyboard shortcuts

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