e2e

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NodeConformance = `\[NodeConformance\]`
	Conformance     = `\[Conformance\]`
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Kubeone

type Kubeone struct {
	// KubeoneDir is a temporary directory for storing test files (e.g. tf.json)
	KubeoneDir string
	// ConfigurationFilePath is a path to the KubeOneCluster manifest
	ConfigurationFilePath string
}

Kubeone is wrapper around KubeOne CLI

func NewKubeone

func NewKubeone(kubeoneDir, configurationFilePath string) Kubeone

NewKubeone creates and initializes the Kubeone structure

func (*Kubeone) CreateConfig added in v0.9.0

func (p *Kubeone) CreateConfig(kubernetesVersion, providerName string, providerExternal bool) error

CreateConfig creates a KubeOneCluster manifest

func (*Kubeone) Install

func (p *Kubeone) Install(tfJSON string) error

Install runs 'kubeone install' command to provision the cluster

func (*Kubeone) Kubeconfig added in v0.9.0

func (p *Kubeone) Kubeconfig() ([]byte, error)

Kubeconfig runs 'kubeone kubeconfig' command to create and store kubeconfig file

func (*Kubeone) Reset

func (p *Kubeone) Reset() error

Reset runs 'kubeone reset' command to destroy worker nodes and unprovision the cluster

func (*Kubeone) Upgrade added in v0.3.0

func (p *Kubeone) Upgrade() error

Upgrade runs 'kubeone upgrade' command to upgrade the cluster

type Kubetest

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

Kubetest configures the Kubetest conformance tester

func NewKubetest

func NewKubetest(k8sVersion, kubetestDir string, envVars map[string]string) Kubetest

NewKubetest creates and provisions the Kubetest structure

func (*Kubetest) Verify

func (p *Kubetest) Verify(scenario string) error

Verify verifies the cluster

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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