Remove alpha init containers from benchmarks (skews results)

This commit is contained in:
Clayton Coleman
2016-05-20 15:01:53 -04:00
parent c730198aad
commit 404a1b1dc5
2 changed files with 10 additions and 6 deletions

View File

@@ -358,6 +358,7 @@ func benchmarkItems() []v1.Pod {
for i := range items {
var pod api.Pod
apiObjectFuzzer.Fuzz(&pod)
pod.Spec.InitContainers, pod.Status.InitContainerStatuses = nil, nil
out, err := api.Scheme.ConvertToVersion(&pod, v1.SchemeGroupVersion)
if err != nil {
panic(err)