Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add S3 CSI Driver IAM policy as blueprints addon #1093

Merged
merged 4 commits into from
Dec 20, 2024

Conversation

jesperalmstrom
Copy link

S3 CSI Driver
Description of changes:
This commit adds a new file iam-policy.ts that contains the IAM policy statements for the S3 CSI driver. It also adds a new file index.ts that implements the S3 CSI driver addon. The addon creates a service account, attaches the IAM policy to the service account's role, and deploys the addon to the cluster. The commit also includes some helper functions and default options for the addon.

This commit adds a new file `iam-policy.ts` that contains the IAM policy statements for the S3 CSI driver. It also adds a new file `index.ts` that implements the S3 CSI driver addon. The addon creates a service account, attaches the IAM policy to the service account's role, and deploys the addon to the cluster. The commit also includes some helper functions and default options for the addon.
Copy link
Collaborator

@shapirov103 shapirov103 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jesperalmstrom great work!

I have a couple of minor comments, please take a look when you get a chance.

As far testing: if you don't mind creating a doc for the addon in the https://github.com/aws-quickstart/cdk-eks-blueprints/tree/main/docs/addons folder providing an example workload to the customers (blueprint with just the addon and example workload for verification) that would be most helpful.

Also once your test is success, please indicate on this PR. If you hit any issues testing it out, I am happy to do some pair programming to resolve.

lib/addons/s3-csi-driver/index.ts Outdated Show resolved Hide resolved
lib/addons/s3-csi-driver/index.ts Show resolved Hide resolved
@shapirov103
Copy link
Collaborator

/do-e2e-tests

import { S3CsiDriverAddon } from '@aws-quickstart/eks-blueprints';

const addOns = [
new S3CsiDriverAddon({
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jesperalmstrom minor: must be S3CSIDriverAddOn not S3CsiDriverAddon

namespace: 'kube-system',
release: S3_CSI_DRIVER_RELEASE,
version: 'v1.9.0',
repository: 'https://github.com/awslabs/mountpoint-s3-csi-driver',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be 'https://awslabs.github.io/mountpoint-s3-csi-driver' which is a proper helm repo as opposed to the source repo. Otherwise helm version validation fails.
See https://github.com/awslabs/mountpoint-s3-csi-driver/blob/main/docs/install.md#helm

Copy link

@aws-ia-ci aws-ia-ci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

end to end tests passed

@shapirov103
Copy link
Collaborator

Merging it, issues that I identified are addressed in #1106 .

@shapirov103 shapirov103 merged commit 400f79c into aws-quickstart:main Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants