Skip to content

Commit ba76d23

Browse files
authored
Merge pull request kubernetes#133259 from ndixita/code-refactor
Adding check for nil pod resources in huge pages test
2 parents 1ef7677 + 4b69865 commit ba76d23

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/e2e_node/hugepages_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,10 @@ func getHugepagesTestPod(f *framework.Framework, podResources *v1.ResourceRequir
201201
},
202202
}
203203

204+
if podResources == nil {
205+
return pod
206+
}
207+
204208
if podResources.Requests != nil || podResources.Limits != nil {
205209
pod.Spec.Resources = podResources
206210
}

0 commit comments

Comments
 (0)