Skip to content

Automatically attach the correct EBS CSI Driver policies when creating the addon #4188

@aclevername

Description

@aclevername

EKS are introducing a new EBS CSI Driver Addon! aws/containers-roadmap#247 Lets improve the UX for users using this new addon but automatically assigning the correct policies by default.

Currently when the user creates the vpc-cni addon and doesn't specify any policies, eksctl automatically adds the recommended policies. See https://github.com/weaveworks/eksctl/blob/b08a784fd9ac5ab6a388681f7f86373f3d809c38/pkg/actions/addon/create.go#L79-L87

EKS are introducing a new addon for the EBS CSI Driver and this also has a similar set of recommended policies. We should mirror the behaviour we have for vpc-cni for this new addon.

Acceptance

eksctl create addon --name <ebs-csi-driver-name> should result in the addon being created, along with the recommended policies

eksctl create addon --name <ebs-csi-driver-name> --attach-policy-arn foo should not result in eksctl attaching any recommended policies, as the user has decided specifically which policies they want added.

Implementation

This PR should make this implementation relatively easy #4161

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions