helm

package
v2.5.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2018 License: Apache-2.0 Imports: 36 Imported by: 12

Documentation

Index

Constants

View Source
const TillerDeploymentName = "tiller-deploy"

TillerDeploymentName is the string identifier for the tiller deployment

View Source
const TillerRoleManagerName = "tiller-config-manager"

TillerRoleManagerName is the name of the role with minimal rights to allow tiller to manage itself

View Source
const TillerRoleName = "devspace-tiller"

TillerRoleName is the name of the role that is assigned to tiller to allow it to deploy to a certain namespace

View Source
const TillerServiceAccountName = "devspace-tiller"

TillerServiceAccountName is the name of the service account tiller will use

Variables

This section is empty.

Functions

func DeleteTiller

func DeleteTiller(kubectlClient *kubernetes.Clientset) error

DeleteTiller clears the tiller server, the service account and role binding

func IsTillerDeployed

func IsTillerDeployed(client *kubernetes.Clientset) bool

IsTillerDeployed determines if we could connect to a tiller server

func WaitForReleasePodToGetReady

func WaitForReleasePodToGetReady(client *kubernetes.Clientset, releaseName, releaseNamespace string, releaseRevision int) (*k8sv1.Pod, error)

WaitForReleasePodToGetReady waits for the release pod to get ready

Types

type ClientWrapper

type ClientWrapper struct {
	Client    *k8shelm.Client
	Settings  *helmenvironment.EnvSettings
	Namespace string
	// contains filtered or unexported fields
}

ClientWrapper holds the necessary information for helm

func NewClient

func NewClient(kubectlClient *kubernetes.Clientset, log log.Logger, upgradeTiller bool) (*ClientWrapper, error)

NewClient creates a new helm client

func (*ClientWrapper) BuildDependencies

func (helmClientWrapper *ClientWrapper) BuildDependencies(chartPath string) error

BuildDependencies builds the dependencies

func (*ClientWrapper) DeleteRelease

func (helmClientWrapper *ClientWrapper) DeleteRelease(releaseName string, purge bool) (*rls.UninstallReleaseResponse, error)

DeleteRelease deletes a helm release and optionally purges it

func (*ClientWrapper) InstallChartByName

func (helmClientWrapper *ClientWrapper) InstallChartByName(releaseName string, releaseNamespace string, chartName string, chartVersion string, values *map[interface{}]interface{}, wait bool) (*hapi_release5.Release, error)

InstallChartByName installs the given chart by name under the releasename in the releasenamespace

func (*ClientWrapper) InstallChartByPath

func (helmClientWrapper *ClientWrapper) InstallChartByPath(releaseName, releaseNamespace, chartPath string, values *map[interface{}]interface{}, wait bool) (*hapi_release5.Release, error)

InstallChartByPath installs the given chartpath und the releasename in the releasenamespace

func (*ClientWrapper) PrintAllAvailableCharts

func (helmClientWrapper *ClientWrapper) PrintAllAvailableCharts()

PrintAllAvailableCharts prints all available charts

func (*ClientWrapper) ReleaseExists

func (helmClientWrapper *ClientWrapper) ReleaseExists(releaseName string) (bool, error)

ReleaseExists checks if the given release name exists

func (*ClientWrapper) SearchChart

func (helmClientWrapper *ClientWrapper) SearchChart(chartName, chartVersion, appVersion string) (*repo.Entry, *repo.ChartVersion, error)

SearchChart searches the chart name in all repositories

func (*ClientWrapper) UpdateDependencies

func (helmClientWrapper *ClientWrapper) UpdateDependencies(chartPath string) error

UpdateDependencies updates the dependencies

Jump to

Keyboard shortcuts

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