-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
Using size ranges for e2e storage drivers and tests #72275
Closed
srmocher
wants to merge
23
commits into
kubernetes:master
from
srmocher:sridhar/dynamic-volume-size-ranges
Closed
Changes from 11 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
afe58cf
add sizerange to infer a range for sizes supported by storage drivers
4cc1982
add sizerange field to driverinfo
62d21d4
update testpatterns to provide sizerange params
e1efda9
update drivers to provide sizeranges
12d3c1f
add intersection of sizes logic to determine claim size
8eaebb9
add todos for correcting min/max values
fe125e7
Fix bugs in variable naming
0faa06b
remove unnecessary usage of math.Min
662cd5f
Merge branch 'master' of https://github.com/kubernetes/kubernetes int…
77c4f63
update GetClaimSize() to return a range instead of static value
c28ac77
fix bug to format string (use Sprintf instead of Sprint)
37c6f88
use string for max and min quantities and update drivers
c631f47
update test drivers with appropriate ranges per comments
5d6599c
add missing comma
f228978
remove old declaration of range
57f7cf1
fix typo
326cb48
return minimum as string
db56cca
Merge branch 'master' of https://github.com/kubernetes/kubernetes int…
0472a76
Update mockCSIDriver after rebase
af0fc19
fix return type of GetClaimSizeRange() for mockCSIDriver
7c71567
remove sizerange from testpatterns
1df3bcf
move it to testsuites
54574cf
remove sizerange from cleanup
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
As for the values for
Min
andMax
, we can safely choose below defaults:[Each testsuite]
[Each Driver]
In addition, we need to add below exception:
[CSI GCE drivers]
https://github.com/kubernetes/kubernetes/blob/master/test/e2e/storage/drivers/csi.go#L173
https://github.com/kubernetes/kubernetes/blob/master/test/e2e/storage/drivers/csi.go#L267