Skip to content

Commit 16a12db

Browse files
committed
use constant variable instead of hard code
1 parent 3d4d833 commit 16a12db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/controller/httproute_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ func (r *HTTPRouteReconciler) processHTTPRoute(tctx *provider.TranslateContext,
544544
if filter.Type != gatewayv1.HTTPRouteFilterExtensionRef || filter.ExtensionRef == nil {
545545
continue
546546
}
547-
if filter.ExtensionRef.Kind == "PluginConfig" {
547+
if filter.ExtensionRef.Kind == types.KindPluginConfig {
548548
pluginconfig := new(v1alpha1.PluginConfig)
549549
if err := r.Get(context.Background(), client.ObjectKey{
550550
Namespace: httpRoute.GetNamespace(),

0 commit comments

Comments
 (0)