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 ¶
DeleteControlPlane deletes the EKS control plane.
type StatementEntry ¶
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
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Run go generate to regenerate this mock.
|
Run go generate to regenerate this mock. |
Click to show internal directories.
Click to hide internal directories.