deployment

package
v0.0.0-...-dcdb1c8 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpPodData

func DumpPodData(workDir, namespace string, accessor *kube.Accessor)

DumpPodData copies pod logs from Kubernetes to the specified workDir.

func DumpPodState

func DumpPodState(namespace string, accessor *kube.Accessor)

DumpPodState logs the current pod state.

func ExtractAttributeManifest

func ExtractAttributeManifest(workDir string) (string, error)

ExtractAttributeManifest extracts attribute manifest from Helm charts.

func HelmTemplate

func HelmTemplate(deploymentName, namespace, chartDir, workDir, valuesFile string, values map[string]string) (string, error)

HelmTemplate calls "helm template".

Types

type HelmConfig

type HelmConfig struct {
	Accessor     *kube.Accessor
	Namespace    string
	WorkDir      string
	ChartDir     string
	CrdsFilesDir string

	// Can be either a file name under ChartDir or an absolute file path.
	ValuesFile string
	Values     map[string]string
}

HelmConfig configuration for a Helm-based deployment.

type Instance

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

Instance represents an Istio deployment instance that has been performed by this test code.

func NewHelmDeployment

func NewHelmDeployment(c HelmConfig) (*Instance, error)

NewHelmDeployment creates a new Helm-based deployment instance.

func NewYamlContentDeployment

func NewYamlContentDeployment(namespace, yamlContents string) *Instance

NewYamlContentDeployment creates a new deployment from the contents of a yaml document.

func NewYamlDeployment

func NewYamlDeployment(namespace, yamlFile string) *Instance

NewYamlDeployment creates a new deployment from a yaml file.

func (*Instance) Delete

func (i *Instance) Delete(a *kube.Accessor, wait bool, opts ...retry.Option) (err error)

Delete this deployment instance.

func (*Instance) Deploy

func (i *Instance) Deploy(a *kube.Accessor, wait bool, opts ...retry.Option) (err error)

Deploy this deployment instance.

Jump to

Keyboard shortcuts

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