mirror of
https://github.com/wahyd4/cert-manager.git
synced 2026-08-09 05:06:38 +10:00
Don't start the Gateway Shared Informer Factory if the Gateway API feature is disabled
Signed-off-by: Jake Sanders <i@am.so-aweso.me>
This commit is contained in:
@@ -194,7 +194,10 @@ func Run(opts *options.ControllerOptions, stopCh <-chan struct{}) error {
|
||||
log.V(logf.DebugLevel).Info("starting shared informer factories")
|
||||
ctx.SharedInformerFactory.Start(rootCtx.Done())
|
||||
ctx.KubeSharedInformerFactory.Start(rootCtx.Done())
|
||||
ctx.GWShared.Start(rootCtx.Done())
|
||||
|
||||
if utilfeature.DefaultFeatureGate.Enabled(feature.ExperimentalGatewayAPISupport) {
|
||||
ctx.GWShared.Start(rootCtx.Done())
|
||||
}
|
||||
|
||||
err = g.Wait()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user