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
Implement kubelet side online file system resize for volume #62460
Implement kubelet side online file system resize for volume #62460
Conversation
/sig storage |
51a4fbf
to
5f75db7
Compare
Very quick feedback before I dive in - please feature gate everything that is pertaining to resizing. None of the changes that are needed for resizing should leak into general code without feature gate. |
fyi @derekwaynecarr |
This should be feature gated separate of the 1.10 resize function and treated as alpha function in 1.11 |
5f75db7
to
61d4a1c
Compare
@mlmhl can you also update the proposal to reflect this. |
@gnufied Thanks for reminding, the proposal is updated. |
61d4a1c
to
14ba050
Compare
14ba050
to
d6adec1
Compare
/test pull-kubernetes-verify |
d6adec1
to
8c4be32
Compare
8c4be32
to
117b7d6
Compare
volumeName v1.UniqueVolumeName) error { | ||
if !utilfeature.DefaultFeatureGate.Enabled(features.ExpandOnlinePersistentVolumes) { | ||
return fmt.Errorf("online resizing is not enabled for this volume %s", volumeName) | ||
} |
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.
do we need this check?
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.
Yeah, this check isn't necessary as the MarkVolumeAsResized
method won't be invoked if the feature gate disabled. I've removed this check.
podName volumetypes.UniquePodName) { | ||
if !utilfeature.DefaultFeatureGate.Enabled(features.ExpandOnlinePersistentVolumes) { | ||
// Do not perform online resizing if feature gate is disabled. | ||
return |
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.
do we need this check?
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.
Same as above.
@mlmhl can you please address the pending comments before it gets merged? |
0293e5b
to
8d3a59a
Compare
8d3a59a
to
b9092c2
Compare
b9092c2
to
ca12c73
Compare
@gnufied Thanks for reminding, the pending comments are addressed. |
/test pull-kubernetes-kubemark-e2e-gce-big |
@mlmhl how did you address them? I do not see feature gate renamed as I was suggesting and I do not see a response to my comment either. |
[MILESTONENOTIFIER] Milestone Pull Request: Up-to-date for process Pull Request Labels
|
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gnufied, mlmhl, saad-ali 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 |
/test pull-kubernetes-kubemark-e2e-gce-big |
1 similar comment
/test pull-kubernetes-kubemark-e2e-gce-big |
Automatic merge from submit-queue (batch tested with PRs 62460, 64480, 63774, 64540, 64337). If you want to cherry-pick this change to another branch, please follow the instructions here. |
@mlmhl: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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/test-infra repository. I understand the commands that are listed here. |
Automatic merge from submit-queue (batch tested with PRs 59938, 63777, 64577, 63999, 64431). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Rename online resizine feature gate This was left as a unaddressed comment from #62460 cc @saad-ali /sig storage ```release-note None ```
@gnufied I'm sorry I missed your comment, I saw you have fixed this, thanks! |
What this PR does / why we need it:
Implement kubelet side online file system resize.
xref - kubernetes/feature#531
proposal - kubernetes/community#1535
Release note: