Skip to content
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 expand support #271

Merged
merged 1 commit into from
Jun 14, 2019
Merged

Conversation

bertinatto
Copy link
Member

@bertinatto bertinatto commented Apr 5, 2019

Is this a bug fix or adding new feature?

/kind feature

What is this PR about? / Why do we need it?

This PR adds partial support for volume expanding.

It doesn't add the resizer to the manifest file on purpose, so we can keep working on this without exposing the feature to people that try out the driver.

Fixes #146.

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. kind/feature Categorizes issue or PR as related to a new feature. labels Apr 5, 2019
@k8s-ci-robot k8s-ci-robot requested review from ddebroy and jsafrane April 5, 2019 14:27
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bertinatto

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Apr 5, 2019
@bertinatto
Copy link
Member Author

The sanity error is already fixed in csi-test: kubernetes-csi/csi-test@455ebbf

@coveralls
Copy link

coveralls commented Apr 5, 2019

Pull Request Test Coverage Report for Build 671

  • 92 of 137 (67.15%) changed or added relevant lines in 3 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.3%) to 71.22%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/driver/controller.go 19 23 82.61%
pkg/cloud/cloud.go 73 88 82.95%
pkg/driver/node.go 0 26 0.0%
Files with Coverage Reduction New Missed Lines %
pkg/cloud/cloud.go 1 75.94%
Totals Coverage Status
Change from base Build 657: -0.3%
Covered Lines: 1168
Relevant Lines: 1640

💛 - Coveralls

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 27, 2019
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Apr 29, 2019
@bertinatto
Copy link
Member Author

/retest

@bertinatto
Copy link
Member Author

/test pull-aws-ebs-csi-driver-e2e-single-az

@bertinatto bertinatto mentioned this pull request Apr 30, 2019
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 11, 2019
@k8s-ci-robot k8s-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels May 13, 2019
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels May 13, 2019
@bertinatto
Copy link
Member Author

/test pull-aws-ebs-csi-driver-e2e-single-az

@bertinatto
Copy link
Member Author

/test pull-aws-ebs-csi-driver-e2e-multi-az

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 13, 2019
@bertinatto bertinatto force-pushed the volume_expansion branch 4 times, most recently from ea49e7d to f8b7f8f Compare June 10, 2019 11:40
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Jun 10, 2019
@k8s-ci-robot k8s-ci-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jun 10, 2019
@bertinatto
Copy link
Member Author

It seems I cannot find the change for manifest to add the resizer? could you add the resizer in manifest?

I was hoping to leave the manifest out for now to avoid exposing the feature before it's ready (see the PR's description). However, I understand it might be hard to test it, so I just added it.

@leakingtapan
Copy link
Contributor

leakingtapan commented Jun 10, 2019

I was hoping to leave the manifest out for now to avoid exposing the feature before it's ready (see the PR's description). However, I understand it might be hard to test it, so I just added it.

Good point. How about we add the resizer into the helm chat and make it configurable (like what I did for volume scheduling. )

The advantage is we can keep the manifest to only expose the stable features and use helm chart to expose alpha/unstable features. The drawback is we need to careful to keep both in sync

Exec: mount.NewOsExec(),
})

// TODO: lock per volume ID to have some idempotency
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@leakingtapan: I opened #307 to discuss this. I think the idempotency of the node service should be fixed in a separate PR.

@bertinatto
Copy link
Member Author

I was hoping to leave the manifest out for now to avoid exposing the feature before it's ready (see the PR's description). However, I understand it might be hard to test it, so I just added it.

Good point. How about we add the resizer into the helm chat and make it configurable (like what I did for volume scheduling. )

The advantage is we can keep the manifest to only expose the stable features and use helm chart to expose alpha/unstable features. The drawback is we need to careful to keep both in sync

Sounds good to me. Would it be acceptable to leave this out of this PR, though? Unfortunately I have a limited bandwidth at the moment, so I won't be able to tinker with helm soon.

@leakingtapan
Copy link
Contributor

I can do the helm part.

Could you rebase the PR before the merge?

@bertinatto
Copy link
Member Author

I can do the helm part.

Should I remove the manifest commit then?

Could you rebase the PR before the merge?

I think it's already rebased.

@leakingtapan
Copy link
Contributor

Let's remove the manifest and squash the commits into one.
Sorry for the confusion

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Jun 13, 2019
@k8s-ci-robot k8s-ci-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jun 13, 2019
@bertinatto
Copy link
Member Author

Let's remove the manifest and squash the commits into one.
Sorry for the confusion

Done

@leakingtapan
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 14, 2019
@leakingtapan leakingtapan merged commit f1eec9e into kubernetes-sigs:master Jun 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Volume Resizing Support
5 participants