agent

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: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IndexDockerIO = "index.docker.io"
	DockerIO      = "docker.io"
)

Variables

This section is empty.

Functions

func CreateRelease added in v1.8.0

func CreateRelease(actionConfig *action.Configuration, name, namespace, valueString string, ch *chart.Chart, registrySecrets map[string]string) (*release.Release, error)

CreateRelease creates a release.

func DeleteRelease added in v1.8.0

func DeleteRelease(actionConfig *action.Configuration, name string, keepHistory bool) error

DeleteRelease deletes a release.

func GetRelease added in v1.8.0

func GetRelease(actionConfig *action.Configuration, name string) (*release.Release, error)

GetRelease returns the info of a release.

func ListReleases

func ListReleases(actionConfig *action.Configuration, namespace string, listLimit int, status string) ([]proxy.AppOverview, error)

ListReleases lists releases in the specified namespace, or all namespaces if the empty string is given.

func NewActionConfig

func NewActionConfig(storageForDriver StorageForDriver, config *rest.Config, clientset *kubernetes.Clientset, namespace string) (*action.Configuration, error)

NewActionConfig creates an action.Configuration, which can then be used to create Helm 3 actions. Among other things, the action.Configuration controls which namespace the command is run against.

func NewConfigFlagsFromCluster added in v1.8.0

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

NewConfigFlagsFromCluster returns ConfigFlags with default values set from within cluster.

func RollbackRelease added in v1.8.0

func RollbackRelease(actionConfig *action.Configuration, releaseName string, revision int) (*release.Release, error)

RollbackRelease rolls back a release to the specified revision.

func StorageForConfigMaps added in v1.8.0

func StorageForConfigMaps(namespace string, clientset *kubernetes.Clientset) *storage.Storage

StorageForConfigMaps returns a storage using the ConfigMap driver.

func StorageForMemory added in v1.8.0

func StorageForMemory(_ string, _ *kubernetes.Clientset) *storage.Storage

StorageForMemory returns a storage using the Memory driver.

func StorageForSecrets added in v1.8.0

func StorageForSecrets(namespace string, clientset *kubernetes.Clientset) *storage.Storage

StorageForSecrets returns a storage using the Secret driver.

func UpgradeRelease added in v1.8.0

func UpgradeRelease(actionConfig *action.Configuration, name, valuesYaml string, ch *chart.Chart, registrySecrets map[string]string) (*release.Release, error)

UpgradeRelease upgrades a release.

Types

type DockerSecretsPostRenderer added in v1.10.0

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

DockerSecretsPostRenderer is a helm post-renderer (see https://helm.sh/docs/topics/advanced/#post-rendering) which appends image pull secrets to container images which match specified registry domains.

func NewDockerSecretsPostRenderer added in v1.10.0

func NewDockerSecretsPostRenderer(secrets map[string]string) (*DockerSecretsPostRenderer, error)

NewDockerSecretsPostRenderer returns a post renderer configured with the specified secrets.

func (*DockerSecretsPostRenderer) Run added in v1.10.0

func (r *DockerSecretsPostRenderer) Run(renderedManifests *bytes.Buffer) (modifiedManifests *bytes.Buffer, err error)

Run returns the rendered yaml including any additions of the post-renderer. An error is only returned if the manifests cannot be parsed or re-rendered.

type StorageForDriver added in v1.8.0

type StorageForDriver func(namespace string, clientset *kubernetes.Clientset) *storage.Storage

StorageForDriver is a function type which returns a specific storage.

func ParseDriverType

func ParseDriverType(raw string) (StorageForDriver, error)

ParseDriverType maps strings to well-typed driver representations.

type Values added in v1.8.0

type Values map[string]interface{}

Values is a type alias for values.yaml.

Jump to

Keyboard shortcuts

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