diff --git a/felix/calc/calc_graph_bench_test.go b/felix/calc/calc_graph_bench_test.go index efa9c5cca36..8b87ee2a0f8 100644 --- a/felix/calc/calc_graph_bench_test.go +++ b/felix/calc/calc_graph_bench_test.go @@ -183,7 +183,7 @@ func makeNetSetAndPolUpdates(num int) []api.Update { }, }) - pol := &model.Policy{} + pol := &model.Policy{Tier: "default"} pol.Selector = "all()" pol.InboundRules = append(pol.InboundRules, model.Rule{ Action: "Allow", @@ -259,7 +259,7 @@ func makeTagPolicies(num int) []api.Update { const rulesPerPol = 5 updates := make([]api.Update, 0, num) for i := 0; i < num; i++ { - pol := &model.Policy{} + pol := &model.Policy{Tier: "default"} pol.Selector = fmt.Sprintf("has(%s)", markerLabels[i%len(markerLabels)]) for j := 0; j < rulesPerPol; j++ { pol.InboundRules = append(pol.InboundRules, model.Rule{