Implement API changes needed for dynamic volume limits

define alpha feature and make api changes
This commit is contained in:
Hemant Kumar
2018-05-23 12:47:42 -04:00
parent bbf5625630
commit 45fb31ec07
5 changed files with 30 additions and 1 deletions

View File

@@ -5549,6 +5549,19 @@ func TestValidateContainers(t *testing.T) {
TerminationMessagePolicy: "File",
},
},
"Invalid storage limit request": {
{
Name: "abc-123",
Image: "image",
Resources: core.ResourceRequirements{
Limits: core.ResourceList{
core.ResourceName("attachable-volumes-aws-ebs"): *resource.NewQuantity(10, resource.DecimalSI),
},
},
ImagePullPolicy: "IfNotPresent",
TerminationMessagePolicy: "File",
},
},
"Request limit multiple invalid": {
{
Name: "abc-123",