diff --git a/pkg/kube/client.go b/pkg/kube/client.go index 19ddd4f09f..738a6a6662 100644 --- a/pkg/kube/client.go +++ b/pkg/kube/client.go @@ -696,7 +696,9 @@ func (c *client) Shutdown() { // c.dynamicInformer.Shutdown() // c.metadataInformer.Shutdown() c.istioInformer.Shutdown() - c.gatewayapiInformer.Shutdown() + if features.EnableGatewayAPI { + c.gatewayapiInformer.Shutdown() + } c.extInformer.Shutdown() }