helm

package
v0.0.0-...-035d3d9 Latest Latest
Warning

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

Go to latest
Published: May 10, 2017 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package helm contains the Helm / Tiller mode implementations and config. See https://github.com/kubernetes/helm for more information on Helm and Tiller

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetComponents

func GetComponents(
	ctx context.Context,
	httpCl *http.Client,
	cmNamespacer v1.ConfigMapsGetter,
) (*grpc.ClientConn, mode.Cataloger, *mode.Lifecycler, error)

GetComponents returns tiller-backed implementations of the Cataloger and Lifecycler interfaces. Also returns the underlying gRPC connection used for Tiller communications. Callers should close this connection when done communicating with tiller

Types

type ProvisionBehavior

type ProvisionBehavior string

ProvisionBehavior is the indication for what steward should do in helm mode when a provision comes in. It implements fmt.Stringer

const (
	// ProvisionBehaviorNoop indicates that steward should 'helm install' a new instance of the chart on startup, and that provision and deprovisoin should do nothing
	ProvisionBehaviorNoop ProvisionBehavior = "noop"
	// ProvisionBehaviorActive indicates that steward should 'helm install' a new instance of the chart on every provision operation (and helm uninstall on each deprovision operation)
	ProvisionBehaviorActive ProvisionBehavior = "active"
)

func (ProvisionBehavior) String

func (p ProvisionBehavior) String() string

type ReleaseCreator

type ReleaseCreator interface {
	Create(*chart.Chart, string) (*rls.InstallReleaseResponse, error)
}

ReleaseCreator is the interface for creating a helm release. It's intended for use in function params for easy mocking

type ReleaseCreatorDeleter

type ReleaseCreatorDeleter interface {
	ReleaseCreator
	ReleaseDeleter
}

ReleaseCreatorDeleter is the concrete composition of a ReleaseCreator and ReleaseDeleter

type ReleaseDeleter

type ReleaseDeleter interface {
	Delete(string) (*rls.UninstallReleaseResponse, error)
}

ReleaseDeleter is the interface for deleting a helm release. It's intended for use in function params for easy mocking

Jump to

Keyboard shortcuts

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