-
Notifications
You must be signed in to change notification settings - Fork 99
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
Setting CSI AWS topology label on machine deployment creation to allow scale-up #365
Conversation
Thank you @himanshu-kun for your contribution. Before I can start building your PR, a member of the organization must set the required label(s) {'reviewed/ok-to-test'}. Once started, you can check the build status in the PR checks section below. |
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.
Thanks for the PR @himanshu-kun . Some suggested changes.
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.
Thanks for the changes. Just minor comments. /lgtm otherwise.
5167569
to
8eb133c
Compare
Co-authored-by: Prashanth <[email protected]> Co-authored-by: Prashanth <[email protected]> Co-authored-by: Prashanth <[email protected]>
not exporting csi driver key constant Co-authored-by: Vladimir Nachev <[email protected]>
removed unit tests, updated constant name to `awsCSIDriverTopologyKey`
2a9bf58
to
ab15506
Compare
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.
I have removed the unit tests which I had added earlier in machines_test.go
but have tested the changes on local AWS shoot.
For AWS cluster , CSI is enable from k8s>=1.18, so I have tested with local shoot of k8s=1.17.17 and k8s =1.20.2 and both gave the expected result of not adding and adding the csi label respectively.
Hope thats ok @vpnachev @rfranzke
moved comments Co-authored-by: Vladimir Nachev <[email protected]>
Co-authored-by: Vladimir Nachev <[email protected]>
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.
Looks great now, just a unit test is missing as requested by @vpnachev
@himanshu-kun You have pull request review with status CHANGES_REQUESTED, please check |
1 similar comment
@himanshu-kun You have pull request review with status CHANGES_REQUESTED, please check |
/title Setting CSI AWS topology label on machine deployment creation to allow scale-up |
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.
Thanks for the changes and tests @himanshu-kun .
/lgtm
/squash
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
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
/needs cherry-pick |
@prashanth26 @himanshu-kun please open a cherry-pick PR to version 1.25 with this change. You can see more details in https://github.com/gardener/gardener/blob/master/docs/development/process.md#cherry-picks and get some inspirations how to open the PR. |
@himanshu-kun will get this done. Thanks. |
…gy label on machine deployment creation to allow scale-up (#368) * added csi driver label if not present and tests Co-authored-by: Prashanth <[email protected]> Co-authored-by: Prashanth <[email protected]> Co-authored-by: Prashanth <[email protected]> * Update pkg/controller/worker/helper.go not exporting csi driver key constant Co-authored-by: Vladimir Nachev <[email protected]> * checking if CSI enabled before adding csi label removed unit tests, updated constant name to `awsCSIDriverTopologyKey` * used lambda fn to add aws csi label * Update pkg/controller/worker/machines.go moved comments Co-authored-by: Vladimir Nachev <[email protected]> * Update pkg/controller/worker/machines.go Co-authored-by: Vladimir Nachev <[email protected]> * added test case Co-authored-by: Prashanth <[email protected]> Co-authored-by: Vladimir Nachev <[email protected]>
How to categorize this PR?
/area auto-scaling
/kind enhancement
/platform aws
What this PR does / why we need it:
adds driver specific CSI label
topology.ebs.csi.aws.com/zone
during machineDeployment creationWhich issue(s) this PR fixes:
Fixes #364
Special notes for your reviewer:
also made changes to unit test written for machineDeployment generation by adding relevant variables
Release note: