installer

package
v2.9.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2018 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeploymentManifest

func DeploymentManifest(opts *Options) (string, error)

DeploymentManifest gets the manifest (as a string) that describes the Tiller Deployment resource.

func Install

func Install(client kubernetes.Interface, opts *Options) error

Install uses Kubernetes client to install Tiller.

Returns an error if the command failed.

func SecretManifest

func SecretManifest(opts *Options) (string, error)

SecretManifest gets the manifest (as a string) that describes the Tiller Secret resource.

func ServiceManifest

func ServiceManifest(namespace string) (string, error)

ServiceManifest gets the manifest (as a string) that describes the Tiller Service resource.

func Uninstall

func Uninstall(client internalclientset.Interface, opts *Options) error

Uninstall uses Kubernetes client to uninstall Tiller.

func Upgrade

func Upgrade(client kubernetes.Interface, opts *Options) error

Upgrade uses Kubernetes client to upgrade Tiller to current version.

Returns an error if the command failed.

Types

type Options

type Options struct {
	// EnableTLS instructs Tiller to serve with TLS enabled.
	//
	// Implied by VerifyTLS. If set the TLSKey and TLSCert are required.
	EnableTLS bool

	// VerifyTLS instructs Tiller to serve with TLS enabled verify remote certificates.
	//
	// If set TLSKey, TLSCert, TLSCaCert are required.
	VerifyTLS bool

	// UseCanary indicates that Tiller should deploy using the latest Tiller image.
	UseCanary bool

	// Namespace is the Kubernetes namespace to use to deploy Tiller.
	Namespace string

	// ServiceAccount is the Kubernetes service account to add to Tiller.
	ServiceAccount string

	// Force allows to force upgrading tiller if deployed version is greater than current version
	ForceUpgrade bool

	// ImageSpec indentifies the image Tiller will use when deployed.
	//
	// Valid if and only if UseCanary is false.
	ImageSpec string

	// TLSKeyFile identifies the file containing the pem encoded TLS private
	// key Tiller should use.
	//
	// Required and valid if and only if EnableTLS or VerifyTLS is set.
	TLSKeyFile string

	// TLSCertFile identifies the file containing the pem encoded TLS
	// certificate Tiller should use.
	//
	// Required and valid if and only if EnableTLS or VerifyTLS is set.
	TLSCertFile string

	// TLSCaCertFile identifies the file containing the pem encoded TLS CA
	// certificate Tiller should use to verify remotes certificates.
	//
	// Required and valid if and only if VerifyTLS is set.
	TLSCaCertFile string

	// EnableHostNetwork installs Tiller with net=host.
	EnableHostNetwork bool

	// MaxHistory sets the maximum number of release versions stored per release.
	//
	// Less than or equal to zero means no limit.
	MaxHistory int

	// Replicas sets the amount of Tiller replicas to start
	//
	// Less than or equals to 1 means 1.
	Replicas int

	// NodeSelectors determine which nodes Tiller can land on.
	NodeSelectors string

	// Output dumps the Tiller manifest in the specified format (e.g. JSON) but skips Helm/Tiller installation.
	Output OutputFormat

	// Set merges additional values into the Tiller Deployment manifest.
	Values []string
}

Options control how to install Tiller into a cluster, upgrade, and uninstall Tiller from a cluster.

type OutputFormat

type OutputFormat string

OutputFormat defines valid values for init output (json, yaml)

func (*OutputFormat) Set

func (f *OutputFormat) Set(s string) error

Set validates and sets the value of the OutputFormat

func (*OutputFormat) String

func (f *OutputFormat) String() string

String returns the string value of the OutputFormat

func (*OutputFormat) Type

func (f *OutputFormat) Type() string

Type returns the string value of the OutputFormat

Jump to

Keyboard shortcuts

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