@@ -26,12 +26,12 @@ import (
2626
2727 "github.com/aws/aws-application-networking-k8s/pkg/aws"
2828 "github.com/aws/aws-application-networking-k8s/pkg/config"
29- "github.com/aws/aws-application-networking-k8s/pkg/k8s"
3029 "github.com/aws/aws-application-networking-k8s/pkg/model/core"
3130 lattice_runtime "github.com/aws/aws-application-networking-k8s/pkg/runtime"
3231 "github.com/aws/aws-application-networking-k8s/pkg/utils"
3332 "github.com/aws/aws-application-networking-k8s/pkg/utils/gwlog"
3433
34+ "github.com/aws/aws-application-networking-k8s/pkg/k8s"
3535 "github.com/pkg/errors"
3636 corev1 "k8s.io/api/core/v1"
3737 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
@@ -72,14 +72,14 @@ func RegisterGatewayController(
7272 scheme := mgr .GetScheme ()
7373 evtRec := mgr .GetEventRecorderFor ("gateway" )
7474
75- ok , err := k8s .IsGVKSupported (mgr , gwv1 .GroupVersion .String (), "GatewayClass " )
75+ ok , err := k8s .IsGVKSupported (mgr , gwv1 .GroupVersion .String (), "Gateway " )
7676 if err != nil {
77- log .Infof (context .TODO (), "Failed to check if GatewayClass is supported: %s" , err .Error ())
78- return fmt . Errorf ( "failed to check if GatewayClass is supported: %w" , err )
77+ log .Infof (context .TODO (), "Failed to check if Gateway is supported: %s" , err .Error ())
78+ return nil
7979 }
8080 if ! ok {
81- log .Infof (context .TODO (), "GatewayClass is not supported, skipping controller registration" )
82- return fmt . Errorf ( "GatewayClass is not supported, skipping controller registration" )
81+ log .Infof (context .TODO (), "Gateway is not supported, skipping controller registration" )
82+ return nil
8383 }
8484 r := & gatewayReconciler {
8585 log : log ,
0 commit comments