agent

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateConfiguration added in v0.0.3

func GenerateConfiguration(token, namespace string) *action.Configuration

GenerateConfiguration generates a configuration from within the context of the pod

func NewConfigFlagsFromCluster added in v0.0.3

func NewConfigFlagsFromCluster(namespace string, clusterConfig *rest.Config) *genericclioptions.ConfigFlags

NewConfigFlagsFromCluster returns ConfigFlags with default values set from within cluster

Types

type Agent

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

Agent represents a Helm3 in-cluster agent

func NewAgent

func NewAgent(token string) *Agent

NewAgent initiates a new agent

func (*Agent) InstallRelease added in v0.0.3

func (agent *Agent) InstallRelease(chartFile, releaseName, namespace string) (*release.Release, error)

InstallRelease installs a release in a given namespace

func (*Agent) ListReleases

func (agent *Agent) ListReleases(namespace string) ([]release.Release, error)

ListReleases lists all deployed and failed releases in a namespace.

func (*Agent) ListReleasesInAllNamespaces added in v0.0.2

func (agent *Agent) ListReleasesInAllNamespaces() ([]release.Release, error)

ListReleasesInAllNamespaces lists all deployed and failed releases in all namespaces

Jump to

Keyboard shortcuts

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