releasetool

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: May 29, 2020 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

releasetool operates on Helm releases like ReleaseModule, but has only a few operations supported to make helm-x work. For the upstream "ReleaseModule", see https://github.com/helm/helm/blob/53d432fa58748412ff3dc10bc27cbf996d96c3ed/pkg/tiller/release_modules.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractHookManifests

func ExtractHookManifests(manifest, target string) ([]string, error)

func SplitManifestAndHooks

func SplitManifestAndHooks(manifest string) (string, []*release.Hook, error)

func TurnHelmTemplateToInstall

func TurnHelmTemplateToInstall(chartName, version, tillerNs, releaseName, ns, manifest string, releaseManifests ...ReleaseManifest) (string, error)

Types

type Opts

type Opts struct {
	StorageBackend string
}

type ReleaseManifest

type ReleaseManifest func(release *rspb.Release, tillerNs string) (interface{}, error)

type ReleaseTool

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

ReleaseTool operates on Helm releases like ReleaseModule, but has only a few operations supported to make helm-x work. For the upstream "ReleaseModule", see https://github.com/helm/helm/blob/53d432fa58748412ff3dc10bc27cbf996d96c3ed/pkg/tiller/release_modules.go

func New

func New(tillerNs string, opts ...Opts) (*ReleaseTool, error)

func NewConfigMapBackedReleaseTool

func NewConfigMapBackedReleaseTool(tillerNs string) (*ReleaseTool, error)

func NewSecretBackednReleaseTool

func NewSecretBackednReleaseTool(tillerNs string) (*ReleaseTool, error)

func (*ReleaseTool) AdoptRelease

func (s *ReleaseTool) AdoptRelease(name, ns, manifest string) error

func (*ReleaseTool) BumpVersion

func (s *ReleaseTool) BumpVersion(release *rspb.Release) (*rspb.Release, error)

func (*ReleaseTool) GetDeployedRelease

func (s *ReleaseTool) GetDeployedRelease(name string) (*rspb.Release, error)

func (*ReleaseTool) GetLatestRelease

func (s *ReleaseTool) GetLatestRelease(name string) (*rspb.Release, error)

func (*ReleaseTool) ReleaseToConfigMap

func (s *ReleaseTool) ReleaseToConfigMap(release *rspb.Release, tillerNs string) (interface{}, error)

func (*ReleaseTool) ReleaseToSecret

func (s *ReleaseTool) ReleaseToSecret(release *rspb.Release, tillerNs string) (interface{}, error)

Jump to

Keyboard shortcuts

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