Skip to content

Commit

Permalink
Merge pull request #4587 from aledbf/order-directives
Browse files Browse the repository at this point in the history
Avoid unnecessary reloads generating lua_shared_dict directives
  • Loading branch information
k8s-ci-robot authored Sep 23, 2019
2 parents 624ce08 + 1b8f651 commit 9b66f2a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/ingress/controller/template/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,8 @@ func buildLuaSharedDictionaries(c interface{}, s interface{}, disableLuaRestyWAF
}
}

sort.Strings(out)

return strings.Join(out, ";\n") + ";\n"
}

Expand Down

0 comments on commit 9b66f2a

Please sign in to comment.