Skip to content

Commit 8aa3839

Browse files
committed
fix: r
Signed-off-by: ashing <axingfly@gmail.com>
1 parent ecf8675 commit 8aa3839

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/controller/apisixroute_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ func (r *ApisixRouteReconciler) processApisixRoute(ctx context.Context, tc *prov
174174
}
175175

176176
// Check if ApisixPluginConfig has IngressClassName and if it matches
177-
if pc.Spec.IngressClassName != "" {
177+
if in.Spec.IngressClassName != pc.Spec.IngressClassName && pc.Spec.IngressClassName != "" {
178178
var pcIC networkingv1.IngressClass
179179
if err := r.Get(ctx, client.ObjectKey{Name: pc.Spec.IngressClassName}, &pcIC); err != nil {
180180
return ReasonError{

0 commit comments

Comments
 (0)