helmexec

package
v0.75.1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(logger *zap.SugaredLogger, kubeContext string) *execer

New for running helm commands

func NewLogger

func NewLogger(writer io.Writer, logLevel string) *zap.SugaredLogger

Types

type DependencyUpdater

type DependencyUpdater interface {
	UpdateDeps(chart string) error
}

type ExitError

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

ExitError is created whenever your shell command exits with a non-zero exit status

func (ExitError) Error

func (e ExitError) Error() string

func (ExitError) ExitStatus

func (e ExitError) ExitStatus() int

type HelmContext

type HelmContext struct {
	Tillerless      bool
	TillerNamespace string
	WorkerIndex     int
}

func (*HelmContext) GetTillerlessArgs

func (context *HelmContext) GetTillerlessArgs(helmBinary string) []string

type Interface

type Interface interface {
	SetExtraArgs(args ...string)
	SetHelmBinary(bin string)

	AddRepo(name, repository, certfile, keyfile, username, password string) error
	UpdateRepo() error
	BuildDeps(chart string) error
	UpdateDeps(chart string) error
	SyncRelease(context HelmContext, name, chart string, flags ...string) error
	DiffRelease(context HelmContext, name, chart string, flags ...string) error
	TemplateRelease(chart string, flags ...string) error
	Fetch(chart string, flags ...string) error
	Lint(chart string, flags ...string) error
	ReleaseStatus(context HelmContext, name string, flags ...string) error
	DeleteRelease(context HelmContext, name string, flags ...string) error
	TestRelease(context HelmContext, name string, flags ...string) error
	List(context HelmContext, filter string, flags ...string) (string, error)
	DecryptSecret(context HelmContext, name string, flags ...string) (string, error)
}

Interface for executing helm commands

type Runner

type Runner interface {
	Execute(cmd string, args []string, env map[string]string) ([]byte, error)
}

Runner interface for shell commands

type ShellRunner

type ShellRunner struct {
	Dir string
	// contains filtered or unexported fields
}

ShellRunner implemention for shell commands

func (ShellRunner) Execute

func (shell ShellRunner) Execute(cmd string, args []string, env map[string]string) ([]byte, error)

Execute a shell command

Jump to

Keyboard shortcuts

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