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 CSI Driver version label to Mountpoint pods #358

Conversation

renanmagagnin
Copy link
Contributor

Description of changes:
We currently add Mountpoint version, Pod UID and Volume Name as labels to Mountpoint Pod. These labels are useful to query Mountpoint Pods, for example one can run kubectl get pods -n mount-s3 -ls3.csi.aws.com/mountpoint-version=1.11.0 to get Mountpoint Pods using Mountpoint v1.11.0.

In this PR, we add the CSI Driver's version as a new label. The Pod creator gets CSI Driver version from a new environment variable which is propagated throughout the call chain. Unit tests and integrations tests were also updated accordingly.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@renanmagagnin renanmagagnin self-assigned this Jan 24, 2025
@renanmagagnin renanmagagnin requested a review from a team as a code owner January 24, 2025 17:10
Copy link
Contributor

@unexge unexge left a comment

Choose a reason for hiding this comment

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

Could you also update controller tests to assert this please?

Makefile Outdated Show resolved Hide resolved
cmd/aws-s3-csi-controller/main.go Outdated Show resolved Hide resolved
pkg/podmounter/mppod/creator.go Outdated Show resolved Hide resolved
pkg/podmounter/mppod/creator.go Outdated Show resolved Hide resolved
@renanmagagnin renanmagagnin force-pushed the feature/add-csi-driver-version-label-to-mountpoint-pods branch from 2d2cfac to 18d83da Compare January 27, 2025 14:34
Signed-off-by: Renan Magagnin <[email protected]>
Copy link
Contributor

@unexge unexge left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @renanmagagnin!

@unexge unexge enabled auto-merge January 27, 2025 15:32
@unexge unexge added this pull request to the merge queue Jan 27, 2025
Merged via the queue into awslabs:main with commit 4ff774b Jan 27, 2025
27 of 28 checks passed
@renanmagagnin renanmagagnin deleted the feature/add-csi-driver-version-label-to-mountpoint-pods branch January 28, 2025 10:27
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