mng

package
v1.5.9 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: Apache-2.0 Imports: 43 Imported by: 0

Documentation

Overview

Package mng defines AWS EKS Managed Node Group configuration.

Index

Constants

View Source
const TemplateMNG = `` /* 2339-byte string literal not displayed */

TemplateMNG is the CloudFormation template for EKS managed node group. 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

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

TemplateRole is the CloudFormation template for EKS managed node group role. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-nodegroup.html https://github.com/aws/eks-charts/tree/master/stable/appmesh-controller ref. https://github.com/kubernetes-sigs/aws-alb-ingress-controller/pull/1126

TODO: create policy instead based off cluster role?

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

TemplateSG is the CloudFormation template for EKS managed 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 ref. https://github.com/kubernetes/kubernetes/blob/release-1.16/test/e2e/network/service.go#L544

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Logger    *zap.Logger
	LogWriter io.Writer
	Stopc     chan struct{}
	EKSConfig *eksconfig.Config
	K8SClient k8s_client.EKS
	S3API     s3iface.S3API
	IAMAPI    iamiface.IAMAPI
	CFNAPI    cloudformationiface.CloudFormationAPI
	EC2API    ec2iface.EC2API
	ASGAPI    autoscalingiface.AutoScalingAPI
	EKSAPI    eksiface.EKSAPI
}

Config defines Managed Node Group configuration.

type Tester

type Tester interface {
	// Name returns the name of the tester.
	Name() string
	// Create creates EKS "Managed Node Group", and waits for completion.
	Create() error
	// Delete deletes all EKS "Managed Node Group" resources.
	Delete() error
	// Scale runs all scale up/down operations.
	Scale() error
	// UpgradeVersion upgrades EKS "Managed Node Group" version, and waits for completion.
	UpgradeVersion() 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 "Managed 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

New creates a new Job tester.

Directories

Path Synopsis
Package scale implements EKS cluster scaler tester.
Package scale implements EKS cluster scaler tester.
Package versionupgrade implements EKS cluster version upgrade tester.
Package versionupgrade implements EKS cluster version upgrade tester.
Package wait implements node waiter.
Package wait implements node waiter.

Jump to

Keyboard shortcuts

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