proxy

package
v1.11.3 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppOverview

type AppOverview struct {
	ReleaseName   string         `json:"releaseName"`
	Version       string         `json:"version"`
	Namespace     string         `json:"namespace"`
	Icon          string         `json:"icon,omitempty"`
	Status        string         `json:"status"`
	Chart         string         `json:"chart"`
	ChartMetadata chart.Metadata `json:"chartMetadata"`
}

AppOverview represents the basics of a release

type Proxy

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

Proxy contains all the elements to contact Tiller and the K8s API

func NewProxy

func NewProxy(kubeClient kubernetes.Interface, helmClient helm.Interface, timeout int64) *Proxy

NewProxy creates a Proxy

func (*Proxy) CreateRelease

func (p *Proxy) CreateRelease(name, namespace, values string, ch *chart.Chart) (*release.Release, error)

CreateRelease creates a tiller release

func (*Proxy) DeleteRelease

func (p *Proxy) DeleteRelease(name, namespace string, purge bool) error

DeleteRelease deletes a release

func (*Proxy) GetRelease

func (p *Proxy) GetRelease(name, namespace string) (*release.Release, error)

GetRelease returns the info of a release

func (*Proxy) GetReleaseStatus

func (p *Proxy) GetReleaseStatus(relName string) (release.Status_Code, error)

GetReleaseStatus returns the status of the given release if it exists

func (*Proxy) ListReleases

func (p *Proxy) ListReleases(namespace string, releaseListLimit int, status string) ([]AppOverview, error)

ListReleases lists releases in a specific namespace if given

func (*Proxy) ResolveManifest

func (p *Proxy) ResolveManifest(namespace, values string, ch *chart.Chart) (string, error)

ResolveManifest returns a manifest given the chart parameters

func (*Proxy) ResolveManifestFromRelease added in v1.5.0

func (p *Proxy) ResolveManifestFromRelease(releaseName string, revision int32) (string, error)

ResolveManifestFromRelease returns a manifest given the release name and revision

func (*Proxy) RollbackRelease added in v1.5.0

func (p *Proxy) RollbackRelease(name, namespace string, revision int32) (*release.Release, error)

RollbackRelease rolls back to a specific revision

func (*Proxy) TestRelease added in v1.8.0

func (p *Proxy) TestRelease(name, namespace string) (*TestStatus, error)

TestRelease runs tests for a release in a namespace

func (*Proxy) UpdateRelease

func (p *Proxy) UpdateRelease(name, namespace string, values string, ch *chart.Chart) (*release.Release, error)

UpdateRelease upgrades a tiller release

type TestStatus added in v1.8.0

type TestStatus = map[string][]string

TestStatus is an alias for a mapping between a string to a list of strings key is "status" returned by Tiller value is "message" of status key

type TillerClient

type TillerClient interface {
	GetReleaseStatus(relName string) (release.Status_Code, error)
	ResolveManifest(namespace, values string, ch *chart.Chart) (string, error)
	ResolveManifestFromRelease(releaseName string, revision int32) (string, error)
	ListReleases(namespace string, releaseListLimit int, status string) ([]AppOverview, error)
	CreateRelease(name, namespace, values string, ch *chart.Chart) (*release.Release, error)
	TestRelease(relName, namespace string) (*TestStatus, error)
	UpdateRelease(name, namespace string, values string, ch *chart.Chart) (*release.Release, error)
	RollbackRelease(name, namespace string, revision int32) (*release.Release, error)
	GetRelease(name, namespace string) (*release.Release, error)
	DeleteRelease(name, namespace string, purge bool) error
}

TillerClient for exposed funcs

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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