S3CSI-227: Move volumeID from Labels to Annotations and add cache volume context#327
Draft
anurag4DSB wants to merge 1 commit intomainfrom
Draft
S3CSI-227: Move volumeID from Labels to Annotations and add cache volume context#327anurag4DSB wants to merge 1 commit intomainfrom
anurag4DSB wants to merge 1 commit intomainfrom
Conversation
Move VolumeID/PV name from Labels to Annotations to fix 63-char overflow. Add cache volume context constants for upstream parity. Keep deprecated labels for backward compatibility. Issue: S3CSI-227
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files
@@ Coverage Diff @@
## main #327 +/- ##
==========================================
+ Coverage 71.89% 71.98% +0.08%
==========================================
Files 47 47
Lines 2669 2677 +8
==========================================
+ Hits 1919 1927 +8
Misses 622 622
Partials 128 128 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in 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.
Summary
Changes
pkg/podmounter/mppod/mppod.go: Add annotation constants, deprecate old labelspkg/podmounter/mppod/creator.go: Write to Annotations, keep deprecated labelspkg/podmounter/mppod/creator_test.go: Assert annotations contain volume namepkg/driver/node/mounter/pod_unmounter.go: Read annotations first, fall back to labelspkg/driver/node/mounter/pod_unmounter_test.go: Updated for deprecated label constantspkg/driver/node/volumecontext/volume_context.go: Add cache constantstests/controller/controller_test.go: Updated for annotation-based assertionsTest Plan
GOOS=linux go vetpassesIssue: S3CSI-227