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: pkg/cmd/infra/router/template.go
+3
Original file line number
Diff line number
Diff line change
@@ -62,6 +62,7 @@ type TemplateRouter struct {
62
62
DefaultCertificateDirstring
63
63
ExtendedValidationbool
64
64
RouterService*ktypes.NamespacedName
65
+
BindPortsAfterSyncbool
65
66
}
66
67
67
68
// reloadInterval returns how often to run the router reloads. The interval
@@ -86,6 +87,7 @@ func (o *TemplateRouter) Bind(flag *pflag.FlagSet) {
86
87
flag.StringVar(&o.ReloadScript, "reload", util.Env("RELOAD_SCRIPT", ""), "The path to the reload script to use")
87
88
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.")
88
89
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
+
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")
89
91
}
90
92
91
93
typeRouterStatsstruct {
@@ -188,6 +190,7 @@ func (o *TemplateRouterOptions) Run() error {
0 commit comments