irsafargate

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: 27 Imported by: 0

Documentation

Overview

Package irsafargate implements tester for "IAM Roles for Service Accounts (IRSA)" Pod with Fargate.

Index

Constants

View Source
const TemplateConfigMap = `` /* 1045-byte string literal not displayed */

TemplateConfigMap is the IRSA config map.

View Source
const TemplatePodScript = `printf '\n\nexecuting...\n\n'; /opt/{{ .ConfigMapScriptFileName }};`

TemplatePodScript is the script to run in Deployment.

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

TemplateRole is the CloudFormation template for EKS IRSA Fargate role.

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 k8s_client.EKS
	CFNAPI    cloudformationiface.CloudFormationAPI
	EKSAPI    eksiface.EKSAPI
	IAMAPI    iamiface.IAMAPI
	S3API     s3iface.S3API
}

Config defines "IAM Roles for Service Accounts (IRSA)" for Fargate configuration. ref. https://aws.amazon.com/blogs/opensource/introducing-fine-grained-iam-roles-service-accounts/

type Tester

type Tester interface {
	// Create creates Fargate pods.
	Create() error
	// Delete deletes Fargate pods.
	Delete() error
}

Tester defines Fargate tester.

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