Skip to content

Commit d118743

Browse files
committed
Add haproxy as default value of --ingress-class
1 parent 3bb3c97 commit d118743

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/controller/controller.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ func (haproxy *HAProxyController) SetListers(lister ingress.StoreLister) {
9494
func (haproxy *HAProxyController) ConfigureFlags(flags *pflag.FlagSet) {
9595
haproxy.reloadStrategy = flags.String("reload-strategy", "native",
9696
`Name of the reload strategy. Options are: native (default) or multibinder`)
97+
ingressClass := flags.Lookup("ingress-class")
98+
if ingressClass != nil {
99+
ingressClass.Value.Set("haproxy")
100+
ingressClass.DefValue = "haproxy"
101+
}
97102
}
98103

99104
// OverrideFlags allows controller to override command line parameter flags

0 commit comments

Comments
 (0)