Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions felix/calc/calc_graph_bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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{
Expand Down
Loading