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
Enable volume expansion tests for generic ephemeral volumes #110180
Enable volume expansion tests for generic ephemeral volumes #110180
Conversation
@gnufied: This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The 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. |
/release-note-none |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gnufied 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 |
/retest |
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'm not familiar with this, but LGTM. Just added a few nits
@@ -213,6 +213,67 @@ func (p *ephemeralTestSuite) DefineTests(driver storageframework.TestDriver, pat | |||
l.testCase.TestEphemeral() | |||
}) | |||
|
|||
ginkgo.It("should support expansion of pvcs created for ephemeral pvcs", func() { |
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.
Online expansion? (line 224 skips if driver doesn't support online expansion)
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 thought it would be redundant because ephemeral volumes are typically always online.
|
||
pvcSize := pvc.Spec.Resources.Requests[v1.ResourceStorage] | ||
if pvcSize.Cmp(newSize) != 0 { | ||
framework.Failf("error updating pvc size %q", pvc.Name) |
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.
nit: could be useful to log the new->old sizes
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.
fixed.
currentPvcSize := pvc.Spec.Resources.Requests[v1.ResourceStorage] | ||
newSize := currentPvcSize.DeepCopy() | ||
newSize.Add(resource.MustParse("1Gi")) | ||
framework.Logf("currentPvcSize %v, newSize %v", currentPvcSize, newSize) |
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.
nit: is this the new size already? Would "requested new size" be better here?
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.
fixed
/retest |
/lgtm |
Add tests for verifying volume expansion with generic ephemeral volumes.
/sig storage