iam

package
v0.22.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	BastionRole           = "bastion"
	ControlPlaneRole      = "control-plane" // also used as part of finalizer name
	NodesRole             = "nodes"         // also used as part of finalizer name
	Route53Role           = "route53-role"
	KIAMRole              = "kiam-role"
	IRSARole              = "irsa-role"
	CertManagerRole       = "cert-manager-role"
	ALBConrollerRole      = "ALBController-Role"
	EBSCSIDriverRole      = "ebs-csi-driver-role"
	EFSCSIDriverRole      = "efs-csi-driver-role"
	ClusterAutoscalerRole = "cluster-autoscaler-role"

	IAMControllerOwnedTag = "capi-iam-controller/owned"
	ClusterIDTag          = "sigs.k8s.io/cluster-api-provider-aws/cluster/%s"
)
View Source
const ALBControllerPolicyTemplate = `` /* 8359-byte string literal not displayed */
View Source
const EBSCSIDriverPolicyTemplate = `` /* 2646-byte string literal not displayed */
View Source
const EFSCSIDriverPolicyTemplate = `` /* 1074-byte string literal not displayed */

Variables

This section is empty.

Functions

func IsAlreadyExists

func IsAlreadyExists(err error) bool

func IsNotFound

func IsNotFound(err error) bool

Types

type IAMService

type IAMService struct {
	// contains filtered or unexported fields
}

func New

func New(config IAMServiceConfig) (*IAMService, error)

func (*IAMService) DeleteKiamRole

func (s *IAMService) DeleteKiamRole() error

func (*IAMService) DeleteRole

func (s *IAMService) DeleteRole() error

func (*IAMService) DeleteRolesForIRSA added in v0.7.0

func (s *IAMService) DeleteRolesForIRSA() error

func (*IAMService) DeleteRoute53Role

func (s *IAMService) DeleteRoute53Role() error

func (*IAMService) GetIRSAOpenIDForEKS added in v0.10.0

func (s *IAMService) GetIRSAOpenIDForEKS(clusterName string) (string, error)

func (*IAMService) GetRoleARN added in v0.10.0

func (s *IAMService) GetRoleARN(roleName string) (string, error)

func (*IAMService) ReconcileKiamRole

func (s *IAMService) ReconcileKiamRole() error

func (*IAMService) ReconcileRole

func (s *IAMService) ReconcileRole() error

func (*IAMService) ReconcileRolesForIRSA added in v0.7.0

func (s *IAMService) ReconcileRolesForIRSA(awsAccountID string, cloudFrontDomain string, oldCloudFrontDomain string) error

func (*IAMService) SetPrincipalRoleARN added in v0.10.0

func (s *IAMService) SetPrincipalRoleARN(arn string)

type IAMServiceConfig

type IAMServiceConfig struct {
	AWSSession       awsclientgo.ConfigProvider
	ClusterName      string
	MainRoleName     string
	Log              logr.Logger
	RoleType         string
	Region           string
	PrincipalRoleARN string
	CustomTags       map[string]string

	IAMClientFactory func(awsclientgo.ConfigProvider, string) iamiface.IAMAPI
}

type Route53RoleParams added in v0.5.0

type Route53RoleParams struct {
	AWSDomain                  string
	EC2ServiceDomain           string
	AccountID                  string
	CloudFrontDomain           string
	AdditionalCloudFrontDomain string
	Namespace                  string
	ServiceAccount             string
	PrincipalRoleARN           string
}

Jump to

Keyboard shortcuts

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