-
Notifications
You must be signed in to change notification settings - Fork 148
Add extra-modify-metadata flag to external-resizer sidecar #420
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 extra-modify-metadata flag to external-resizer sidecar #420
Conversation
|
Welcome @mdzraf! |
|
Hi @mdzraf. Thanks for your PR. I'm waiting for a kubernetes-csi member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/ok-to-test |
d9fdd49 to
07dfe61
Compare
|
Can you rebase this PR? |
0f70a09 to
75c51b6
Compare
|
@gnufied I have rebased the PR and all tests have passed, it is ready for review |
| t.Run(tc.name, func(t *testing.T) { | ||
| featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.VolumeAttributesClass, true) | ||
| client := csi.NewMockClient("foo", true, true, true, true, true) | ||
| client := csi.NewMockClient("foo", true, true, true, true, true, false) |
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.
Are we even using this boolean value anywhere?
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.
Also another nit (and not this PRs fault), I am beginning to dislike the endless list of true/false arguments with no idea, what they do. :(
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.
That boolean value is not used in most of the tests but I had to make the necessary changes to the MockClient in order to be able to write unit tests for the flag on the TestModify, I did not think it was appropriate to make a new struct to deal with the TestModify tests only, but I could.
I do agree with you on that it is messy to have so many unlabeled booleans, do you have any suggestions?
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.
@gnufied Are there any other outstanding concerns with the PR besides this?
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gnufied, mdzraf The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR adds a flag that can be set by the user which will inject extra PVC and PV metadata as parameters when calling ModifyVolume on CSI Drivers. This will enable CSI Drivers to support StorageClass parameters that depend on the extra metadata in modification via VolumeAttributesClass as well.
See doc for more info
Which issue(s) this PR fixes:
N/A
Special notes for your reviewer:
N/A
Does this PR introduce a user-facing change?: