iam

package
v0.6.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// EKSFargateService is the service to trust for fargate pod execution roles
	EKSFargateService = "eks-fargate-pods.amazonaws.com"
)

Variables

This section is empty.

Functions

func ControlPlaneTrustRelationship

func ControlPlaneTrustRelationship(enableFargate bool) *apiiam.PolicyDocument

func FargateTrustRelationship added in v0.6.5

func FargateTrustRelationship() *apiiam.PolicyDocument

func NodegroupTrustRelationship

func NodegroupTrustRelationship() *apiiam.PolicyDocument

func RoleTags

func RoleTags(key string, additionalTags infrav1.Tags) []*iam.Tag

Types

type IAMService

type IAMService struct {
	logr.Logger
	IAMClient iamiface.IAMAPI
}

func (*IAMService) CreateOIDCProvider added in v0.6.4

func (s *IAMService) CreateOIDCProvider(cluster *eks.Cluster) (string, error)

func (*IAMService) CreateRole

func (s *IAMService) CreateRole(
	roleName string,
	key string,
	trustRelationship *apiiam.PolicyDocument,
	additionalTags infrav1.Tags,
) (*iam.Role, error)

func (*IAMService) DeleteOIDCProvider added in v0.6.4

func (s *IAMService) DeleteOIDCProvider(arn *string) error

func (*IAMService) DeleteRole

func (s *IAMService) DeleteRole(name string) error

func (*IAMService) EnsurePoliciesAttached

func (s *IAMService) EnsurePoliciesAttached(role *iam.Role, policies []*string) (bool, error)

func (*IAMService) EnsureTagsAndPolicy

func (s *IAMService) EnsureTagsAndPolicy(
	role *iam.Role,
	key string,
	trustRelationship *apiiam.PolicyDocument,
	additionalTags infrav1.Tags,
) (bool, error)

func (*IAMService) GetIAMRole

func (s *IAMService) GetIAMRole(name string) (*iam.Role, error)

func (*IAMService) IsUnmanaged

func (s *IAMService) IsUnmanaged(role *iam.Role, key string) bool

Jump to

Keyboard shortcuts

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