Skip to content

Commit

Permalink
no more check
Browse files Browse the repository at this point in the history
  • Loading branch information
facchettos committed Jul 16, 2024
1 parent 261a89a commit f4648bd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/controllers/resources/ingresses/syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package ingresses

import (
"fmt"
"reflect"
"strings"

synccontext "github.com/loft-sh/vcluster/pkg/controllers/syncer/context"
Expand Down Expand Up @@ -45,9 +44,8 @@ func (s *ingressSyncer) Sync(ctx *synccontext.SyncContext, pObj client.Object, v
}()

pIngress, vIngress, _, _ := synccontext.Cast[*networkingv1.Ingress](ctx, pObj, vObj)
if !reflect.DeepEqual(pIngress.Spec.IngressClassName, vIngress.Spec.IngressClassName) {
vIngress.Spec.IngressClassName = pIngress.Spec.IngressClassName
}

vIngress.Spec.IngressClassName = pIngress.Spec.IngressClassName

vIngress.Status = pIngress.Status

Expand Down

0 comments on commit f4648bd

Please sign in to comment.