ng

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2020 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Overview

Package ng implements EKS worker nodes with a custom AMI.

Index

Constants

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

TemplateASG is the CloudFormation template for EKS node group. ref. https://docs.aws.amazon.com/eks/latest/userguide/launch-workers.html ref. https://github.com/awslabs/amazon-eks-ami/blob/master/amazon-eks-nodegroup.yaml

View Source
const TemplateRole = `` /* 6266-byte string literal not displayed */

TemplateRole is the CloudFormation template for EKS node group role. ref. https://docs.aws.amazon.com/eks/latest/userguide/launch-workers.html ref. https://github.com/awslabs/amazon-eks-ami/blob/master/amazon-eks-nodegroup.yaml

View Source
const TemplateSG = `` /* 3777-byte string literal not displayed */

TemplateSG is the CloudFormation template for EKS node group security group. ref. https://docs.aws.amazon.com/eks/latest/userguide/launch-workers.html ref. https://github.com/awslabs/amazon-eks-ami/blob/master/amazon-eks-nodegroup.yaml ref. https://github.com/aws/aws-k8s-tester/pull/33

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

TemplateSSMDocument is the CFN template for SSM Document.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Logger    *zap.Logger
	Stopc     chan struct{}
	Sig       chan os.Signal
	EKSConfig *eksconfig.Config
	K8SClient k8sClientSetGetter
	IAMAPI    iamiface.IAMAPI
	CFNAPI    cloudformationiface.CloudFormationAPI
	EC2API    ec2iface.EC2API
	ASGAPI    autoscalingiface.AutoScalingAPI
	EKSAPI    eksiface.EKSAPI
	SSMAPI    ssmiface.SSMAPI
	S3API     s3iface.S3API
}

Config defines Node Group configuration.

type Tester

type Tester interface {
	// Create creates EKS "Node Group", and waits for completion.
	Create() error
	// Delete deletes all EKS "Node Group" resources.
	Delete() error

	// FetchLogs fetches logs from all worker nodes.
	FetchLogs() error
	// DownloadClusterLogs dumps all logs to artifact directory.
	// Let default kubetest log dumper handle all artifact uploads.
	// See https://github.com/kubernetes/test-infra/pull/9811/files#r225776067.
	DownloadClusterLogs(artifactDir string) error
}

Tester implements EKS "Node Group" for "kubetest2" Deployer. ref. https://github.com/kubernetes/test-infra/blob/master/kubetest2/pkg/types/types.go ref. https://docs.aws.amazon.com/eks/latest/userguide/create-managed-node-group.html ref. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-nodegroup.html

func New

func New(cfg Config) (Tester, error)

New creates a new Job tester.

Jump to

Keyboard shortcuts

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