ekstester

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package ekstester defines interface EKS cluster tester and deployer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deployer

type Deployer interface {
	Up() error
	IsUp() error
	TestSetup() error
	Down() error
	GetClusterCreated(gcpProject string) (time.Time, error)
	DumpClusterLogs(artifactDir, _ string) error

	// GetWorkerNodeLogs downloads logs from worker node machines.
	GetWorkerNodeLogs() error

	// Stop stops ongoing operations.
	// This is useful for local development.
	// For example, one may run "Up" but have to cancel onging "Up"
	// operation. Then, it can just send syscall.SIGINT to trigger "Stop".
	Stop()

	// LoadConfig reloads configuration from disk to read the latest
	// cluster configuration and its states.
	// It's either reloaded from disk or returned from embedded EKS deployer.
	LoadConfig() (eksconfig.Config, error)

	// KubectlCommand returns "kubectl" command object for API reachability tests.
	KubectlCommand() (*osexec.Cmd, error)
	// KubernetesClientSet returns Kubernetes Go client.
	KubernetesClientSet() *kubernetes.Clientset
}

Deployer defines EKS deployer. Satisfies "k8s.io/test-infra/kubetest/main.go" 'deployer' interfaces. Reference https://github.com/kubernetes/test-infra/blob/master/kubetest/main.go.

type Tester

type Tester interface {
	Deployer
	// UploadToBucketForTests uploads a local file to aws-k8s-tester S3 bucket.
	UploadToBucketForTests(localPath, remotePath string) error
}

Tester defines aws-k8s-tester eks specific operations.

Jump to

Keyboard shortcuts

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