Skip to content

Commit

Permalink
Merge pull request kubernetes#30865 from gmarek/constraints
Browse files Browse the repository at this point in the history
Make sure that provider is set when we create resource constraints in…
  • Loading branch information
wojtek-t authored Aug 18, 2016
2 parents 9696a27 + d3d5f88 commit bba4a3b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/e2e/density.go
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,6 @@ var _ = framework.KubeDescribe("Density", func() {
switch testArg.podsPerNode {
case 30:
name = "[Feature:Performance] " + name
f.AddonResourceConstraints = func() map[string]framework.ResourceConstraint { return density30AddonResourceVerifier(nodeCount) }()
case 95:
name = "[Feature:HighDensityPerformance]" + name
default:
Expand All @@ -457,6 +456,9 @@ var _ = framework.KubeDescribe("Density", func() {
itArg := testArg
It(name, func() {
podsPerNode := itArg.podsPerNode
if podsPerNode == 30 {
f.AddonResourceConstraints = func() map[string]framework.ResourceConstraint { return density30AddonResourceVerifier(nodeCount) }()
}
totalPods = podsPerNode * nodeCount
fileHndl, err := os.Create(fmt.Sprintf(framework.TestContext.OutputDir+"/%s/pod_states.csv", uuid))
framework.ExpectNoError(err)
Expand Down

0 comments on commit bba4a3b

Please sign in to comment.