You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/man/man1/openshift-infra-router.1
+4
Original file line number
Diff line number
Diff line change
@@ -89,6 +89,10 @@ You may restrict the set of routes exposed to a single project (with \-\-namespa
89
89
\fB\-\-denied\-domains\fP=[]
90
90
List of comma separated domains to deny in routes
91
91
92
+
.PP
93
+
\fB\-\-enable\-ingress\fP=false
94
+
Enable configuration via ingress resources
95
+
92
96
.PP
93
97
\fB\-\-extended\-validation\fP=true
94
98
If set, then an additional extended validation step is performed on all routes admitted in by this router. Defaults to true and enables the extended validation checks.
Copy file name to clipboardExpand all lines: pkg/cmd/infra/router/f5.go
+5-1
Original file line number
Diff line number
Diff line change
@@ -88,6 +88,9 @@ type F5Router struct {
88
88
// InternalAddress is the ip address of the vtep interface used to connect to
89
89
// VxLAN overlay. It is the hostIP address listed in the subnet generated for F5
90
90
InternalAddressstring
91
+
92
+
/// Enable configuration via ingress resources
93
+
EnableIngressbool
91
94
}
92
95
93
96
// Bind binds F5Router arguments to flags
@@ -103,6 +106,7 @@ func (o *F5Router) Bind(flag *pflag.FlagSet) {
103
106
flag.StringVar(&o.PartitionPath, "f5-partition-path", util.Env("ROUTER_EXTERNAL_HOST_PARTITION_PATH", f5plugin.F5DefaultPartitionPath), "The F5 BIG-IP partition path to use")
104
107
flag.StringVar(&o.InternalAddress, "f5-internal-address", util.Env("ROUTER_EXTERNAL_HOST_INTERNAL_ADDRESS", ""), "The F5 BIG-IP internal interface's IP address")
105
108
flag.StringVar(&o.VxlanGateway, "f5-vxlan-gateway-cidr", util.Env("ROUTER_EXTERNAL_HOST_VXLAN_GW_CIDR", ""), "The F5 BIG-IP gateway-ip-address/cidr-mask for setting up the VxLAN")
109
+
flag.BoolVar(&o.EnableIngress, "f5-enable-ingress", util.Env("ROUTER_ENABLE_INGRESS", "") =="true", "Enable configuration via ingress resources")
106
110
}
107
111
108
112
// Validate verifies the required F5 flags are present
@@ -225,7 +229,7 @@ func (o *F5RouterOptions) Run() error {
Copy file name to clipboardExpand all lines: pkg/cmd/infra/router/template.go
+3-1
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,7 @@ type TemplateRouter struct {
63
63
ExtendedValidationbool
64
64
RouterService*ktypes.NamespacedName
65
65
BindPortsAfterSyncbool
66
+
EnableIngressbool
66
67
}
67
68
68
69
// reloadInterval returns how often to run the router reloads. The interval
@@ -88,6 +89,7 @@ func (o *TemplateRouter) Bind(flag *pflag.FlagSet) {
88
89
flag.DurationVar(&o.ReloadInterval, "interval", reloadInterval(), "Controls how often router reloads are invoked. Mutiple router reload requests are coalesced for the duration of this interval since the last reload time.")
89
90
flag.BoolVar(&o.ExtendedValidation, "extended-validation", util.Env("EXTENDED_VALIDATION", "true") =="true", "If set, then an additional extended validation step is performed on all routes admitted in by this router. Defaults to true and enables the extended validation checks.")
90
91
flag.BoolVar(&o.BindPortsAfterSync, "bind-ports-after-sync", util.Env("ROUTER_BIND_PORTS_AFTER_SYNC", "") =="true", "Bind ports only after route state has been synchronized")
92
+
flag.BoolVar(&o.EnableIngress, "enable-ingress", util.Env("ROUTER_ENABLE_INGRESS", "") =="true", "Enable configuration via ingress resources")
91
93
}
92
94
93
95
typeRouterStatsstruct {
@@ -215,7 +217,7 @@ func (o *TemplateRouterOptions) Run() error {
0 commit comments