Add sort-backends command line option

This commit is contained in:
Joao Morais 2017-07-12 21:35:36 -03:00
parent 7c749ede0a
commit 8c3bb17f56
2 changed files with 17 additions and 4 deletions

View file

@ -93,6 +93,9 @@ func NewIngressController(backend ingress.Controller) *GenericController {
UpdateStatusOnShutdown = flags.Bool("update-status-on-shutdown", true, `Indicates if the
ingress controller should update the Ingress status IP/hostname when the controller
is being stopped. Default is true`)
SortBackends = flags.Bool("sort-backends", false,
`Defines if backends and it's endpoints should be sorted`)
)
flags.AddGoFlagSet(flag.CommandLine)
@ -169,6 +172,7 @@ func NewIngressController(backend ingress.Controller) *GenericController {
Backend: backend,
ForceNamespaceIsolation: *forceIsolation,
UpdateStatusOnShutdown: *UpdateStatusOnShutdown,
SortBackends: *SortBackends,
}
ic := newIngressController(config)