Add 'use regex' annotation to toggle nginx regex location modifier
This commit is contained in:
parent
f56e839134
commit
f29bdc3e8d
10 changed files with 325 additions and 39 deletions
|
|
@ -620,6 +620,10 @@ func (n *NGINXController) getBackendServers(ingresses []*extensions.Ingress) ([]
|
|||
sort.SliceStable(value.Locations, func(i, j int) bool {
|
||||
return value.Locations[i].Path > value.Locations[j].Path
|
||||
})
|
||||
|
||||
sort.SliceStable(value.Locations, func(i, j int) bool {
|
||||
return len(value.Locations[i].Path) > len(value.Locations[j].Path)
|
||||
})
|
||||
aServers = append(aServers, value)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue