-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add CSI Driver version label to Mountpoint pods #358
Merged
unexge
merged 3 commits into
awslabs:main
from
renanmagagnin:feature/add-csi-driver-version-label-to-mountpoint-pods
Jan 27, 2025
Merged
Add CSI Driver version label to Mountpoint pods #358
unexge
merged 3 commits into
awslabs:main
from
renanmagagnin:feature/add-csi-driver-version-label-to-mountpoint-pods
Jan 27, 2025
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dannycjones
reviewed
Jan 24, 2025
unexge
reviewed
Jan 24, 2025
There was a problem hiding this 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?
Signed-off-by: Renan Magagnin <renanmagagnin@gmail.com>
2d2cfac
to
18d83da
Compare
Signed-off-by: Renan Magagnin <renanmagagnin@gmail.com>
unexge
approved these changes
Jan 27, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks @renanmagagnin!
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.