-
Notifications
You must be signed in to change notification settings - Fork 500
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
Patch PVCs when storage request is increased #3096
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3096 +/- ##
==========================================
+ Coverage 42.98% 43.13% +0.15%
==========================================
Files 155 156 +1
Lines 16830 16924 +94
==========================================
+ Hits 7234 7301 +67
- Misses 8983 8999 +16
- Partials 613 624 +11
Flags with carried forward coverage won't be shown. Click here to find out more. |
1277571
to
ee394d6
Compare
cc @mightyguava |
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.
can/should the operator also monitor that the volume expansion is eventually applied? I guess it can only do that if ExpandInUsePersistentVolumes
is enabled, which it probably can't check
newPVCWithStorage("pd-0", label.PDLabelVal, "sc", "2Gi"), | ||
}, | ||
wantPVCs: []*v1.PersistentVolumeClaim{ | ||
newPVCWithStorage("pd-0", label.PDLabelVal, "sc", "2Gi"), |
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.
nice test!
@mightyguava,Thanks for your review. However, LGTM is restricted to Reviewers or higher roles.See the corresponding SIG page for more information. Related SIGs: k8s(slack). |
1 similar comment
@mightyguava,Thanks for your review. However, LGTM is restricted to Reviewers or higher roles.See the corresponding SIG page for more information. Related SIGs: k8s(slack). |
it can but the operator can only report some events, but users can watch the PVCs too. as for now, I think it's not necessary. |
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.
Rest LGTM
Co-authored-by: DanielZhangQD <36026334+DanielZhangQD@users.noreply.github.com>
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
/test pull-e2e-kind |
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
/merge |
/run-all-tests |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-1.1 in PR #3122 |
…reased (#3124) * Patch PVC when storage request is increased * shrinking is not supported * Update pkg/manager/member/pvc_resizer.go Co-authored-by: DanielZhangQD <36026334+DanielZhangQD@users.noreply.github.com> * resolve conflicts Co-authored-by: DanielZhangQD <36026334+DanielZhangQD@users.noreply.github.com>
What problem does this PR solve?
fixes #3004
What is changed and how does it work?
Check List
Tests
Code changes
Side effects
Related changes
Does this PR introduce a user-facing change?: