helm

package
v0.0.0-...-a480921 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 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 Helm

type Helm interface {
	Install(in *InstallOptions) error
}

Helm represents helm.

func NewShellClient

func NewShellClient(cfg config.Config, opts *ShellClientOptions) (Helm, error)

NewShellClient return new ShellClient.

type InstallOptions

type InstallOptions struct {
	Release          string
	Target           string
	TargetType       config.TargetType
	KubernetesClient *kubernetes.Clientset
}

InstallOptions contains arguments for Install method.

func NewInstallOptions

func NewInstallOptions() *InstallOptions

NewInstallOptions creates new InstallOptions object.

type ShellClient

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

ShellClient implements Helm as a shell call to helm binary client.

func (*ShellClient) Install

func (sc *ShellClient) Install(in *InstallOptions) error

Install installs release or releases from config.

type ShellClientOptions

type ShellClientOptions struct {
	// Run in debug mode.
	Debug bool
	// Use helm diff plugin.
	Diff bool
	// Enable dry run mode.
	DryRun bool
	// Set logger.
	Logger *logrus.Logger
	// If true repositories adding will be skipped.
	SkipRepositories bool
	// If true scripts running will be skipped.
	SkipScripts bool
	// Path to sops config file.
	SopsConfig string
	// Allow scripts running in dry run mode.
	WithScripts bool
	// Helm binary path
	HelmPath string
}

ShellClientOptions contains options for ShellClient.

func NewShellClientOptions

func NewShellClientOptions(logger *logrus.Logger) *ShellClientOptions

NewShellClientOptions creates new ShellClientOptions object.

Jump to

Keyboard shortcuts

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