Skip to content

Commit 85e0406

Browse files
authored
fix: modify supportsGateway judgment conditions (#344)
1 parent 251c0c6 commit 85e0406

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/controller/gatewayproxy_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ type GatewayProxyController struct {
6262
func (r *GatewayProxyController) SetupWithManager(mrg ctrl.Manager) error {
6363
// Check and store EndpointSlice API support
6464
r.supportsEndpointSlice = pkgutils.HasAPIResource(mrg, &discoveryv1.EndpointSlice{})
65-
r.supportsGateway = pkgutils.HasAPIResource(mrg, &gatewayv1.Gateway{})
65+
r.supportsGateway = pkgutils.HasAPIResource(mrg, &gatewayv1.Gateway{}) && !config.ControllerConfig.DisableGatewayAPI
6666
var icWatch client.Object
6767
switch r.ICGV.String() {
6868
case networkingv1beta1.SchemeGroupVersion.String():

0 commit comments

Comments
 (0)