Skip to content

Commit

Permalink
Add haproxy as default value of --ingress-class
Browse files Browse the repository at this point in the history
  • Loading branch information
jcmoraisjr committed Jun 7, 2017
1 parent 3bb3c97 commit d118743
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ func (haproxy *HAProxyController) SetListers(lister ingress.StoreLister) {
func (haproxy *HAProxyController) ConfigureFlags(flags *pflag.FlagSet) {
haproxy.reloadStrategy = flags.String("reload-strategy", "native",
`Name of the reload strategy. Options are: native (default) or multibinder`)
ingressClass := flags.Lookup("ingress-class")
if ingressClass != nil {
ingressClass.Value.Set("haproxy")
ingressClass.DefValue = "haproxy"
}
}

// OverrideFlags allows controller to override command line parameter flags
Expand Down

0 comments on commit d118743

Please sign in to comment.