deployment

package
v0.0.0-...-1a56975 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpPodEvents

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

DumpPodEvents logs the current pod event.

func DumpPodState

func DumpPodState(workDir string, 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
}

const (

namespaceTemplate = `apiVersion: v1

kind: Namespace metadata:

name: %s
labels:
  istio-injection: disabled

`

zeroCRDInstallFile        = "crd-10.yaml"
oneCRDInstallFile         = "crd-11.yaml"
twoCRDInstallFile         = "crd-12.yaml"
certManagerCRDInstallFile = "crd-certmanager-10.yaml"

)

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 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