ec2

package
v1.1.3 Latest Latest
Warning

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

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

Documentation

Overview

Package ec2 implements testing utilities using EC2.

Index

Constants

View Source
const TemplateASG = `` /* 5761-byte string literal not displayed */

TemplateASG is the CloudFormation template for ASG. "must specify one of the following properties: LaunchConfigurationName, LaunchTemplate, InstanceId, or MixedInstancesPolicy" ref. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-group.html ref. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatepolicy.html ref. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html ref. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html

View Source
const TemplateRoleBasic = `` /* 1172-byte string literal not displayed */

TemplateRoleBasic is the CloudFormation template for EC2 role.

View Source
const TemplateSSMDocument = `` /* 1565-byte string literal not displayed */

TemplateSSMDocument is the CFN template for SSM Document.

View Source
const TemplateVPCPublicPrivate = `` /* 13196-byte string literal not displayed */

TemplateVPCPublicPrivate is the CloudFormation template for EC2 VPC.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tester added in v0.6.9

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

Tester implements "kubetest2" Deployer. ref. https://github.com/kubernetes/test-infra/blob/master/kubetest2/pkg/types/types.go

func New added in v0.6.9

func New(cfg *ec2config.Config) (*Tester, error)

New creates a new EC2 tester.

func (*Tester) Down added in v0.6.9

func (ts *Tester) Down() error

Down cancels the cluster creation and destroy the test cluster if any.

func (*Tester) DownloadLogs added in v0.7.0

func (ts *Tester) DownloadLogs(artifactDir string) error

DownloadLogs downloads logs to the artifact direcoty.

func (*Tester) FetchLogs added in v0.6.9

func (ts *Tester) FetchLogs() (err error)

FetchLogs downloads logs from managed node group instances.

func (*Tester) Up added in v0.6.9

func (ts *Tester) Up() (err error)

Up should provision a new cluster for testing

Jump to

Keyboard shortcuts

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