v2

package
v1.1.1-0...-9418116 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

View Source
const DeploymentTimeout = int64(180)

DeploymentTimeout is the timeout to wait for helm to deploy

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(config *latest.Config, client kubectl.Client, tillerNamespace string) error

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

func IsTillerDeployed

func IsTillerDeployed(config *latest.Config, client kubectl.Client, tillerNamespace string) bool

IsTillerDeployed determines if we could connect to a tiller server

func NewClient

func NewClient(config *latest.Config, kubeClient kubectl.Client, tillerNamespace string, log log.Logger, upgradeTiller, dryInit bool) (types.Client, error)

NewClient creates a new helm client

func ReleaseExists

func ReleaseExists(helm helm.Interface, releaseName string) bool

ReleaseExists checks if the given release name exists

Types

type FakeClient

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

FakeClient implements Interface

func NewFakeClient

func NewFakeClient(kubeClient kubernetes.Interface, tillerNamespace string) *FakeClient

NewFakeClient creates a new fake client

func (*FakeClient) DeleteRelease

func (f *FakeClient) DeleteRelease(releaseName string, purge bool) (*rls.UninstallReleaseResponse, error)

DeleteRelease deletes a helm release and optionally purges it

func (*FakeClient) InstallChart

func (f *FakeClient) InstallChart(releaseName string, releaseNamespace string, values *map[interface{}]interface{}, helmConfig *latest.HelmConfig) (*hapi_release5.Release, error)

InstallChart implements interface

func (*FakeClient) ListReleases

func (f *FakeClient) ListReleases() (*rls.ListReleasesResponse, error)

ListReleases lists all helm releases

func (*FakeClient) UpdateRepos

func (f *FakeClient) UpdateRepos() error

UpdateRepos implements interface

Jump to

Keyboard shortcuts

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