eks

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2020 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrClusterExists is an error if a EKS cluster already exists with
	// the same name in the spec but that isn't owned by the CAPI cluster
	ErrClusterExists = errors.New("an EKS cluster already exists with same name but isn't owned by cluster")
	// ErrUnknownTokenMethod defines an error if a unsupported token generation method is supplied
	ErrUnknownTokenMethod = errors.New("unknown token method")
	// ErrClusterRoleNameMissing if no role name is specified
	ErrClusterRoleNameMissing = errors.New("a cluster role name must be specified")
	// ErrClusterRoleNotFound is an error if the specified role couldn't be founbd in AWS
	ErrClusterRoleNotFound = errors.New("the specified cluster role couldn't be found")
	// ErrCannotUseAdditionalRoles is an error if the spec contains additional role and the
	// EKSAllowAddRoles feature flag isn't enabled
	ErrCannotUseAdditionalRoles = errors.New("additional rules cannot be added as this has been disabled")
	// ErrNoSecurityGroup is an error when no security group is found for an EKS cluster
	ErrNoSecurityGroup = errors.New("no security group for EKS cluster")
)

Functions

This section is empty.

Types

type Service

type Service struct {
	EC2Client ec2iface.EC2API
	EKSClient eksiface.EKSAPI
	IAMClient iamiface.IAMAPI
	STSClient stsiface.STSAPI
	// contains filtered or unexported fields
}

Service holds a collection of interfaces. The interfaces are broken down like this to group functions together. One alternative is to have a large list of functions from the ec2 client.

func NewService

func NewService(controlPlaneScope *scope.ManagedControlPlaneScope) *Service

NewService returns a new service given the api clients.

func (*Service) DeleteControlPlane

func (s *Service) DeleteControlPlane() (err error)

DeleteControlPlane deletes the EKS control plane.

func (*Service) ReconcileControlPlane

func (s *Service) ReconcileControlPlane(ctx context.Context) error

ReconcileControlPlane reconciles a EKS control plane

type StatementEntry

type StatementEntry struct {
	Effect    string
	Action    []string
	Principal map[string][]string
}

StatementEntry represents a statement within an IAM policy document

type TrustRelationshipPolicyDocument

type TrustRelationshipPolicyDocument struct {
	Version   string
	Statement []StatementEntry
}

TrustRelationshipPolicyDocument represesnts an IAM policy docyment

func (*TrustRelationshipPolicyDocument) ToJSONString

func (d *TrustRelationshipPolicyDocument) ToJSONString() (string, error)

ToJSONString converts the document to a JSON string

Directories

Path Synopsis
Run go generate to regenerate this mock.
Run go generate to regenerate this mock.

Jump to

Keyboard shortcuts

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