Skip to content

Commit

Permalink
Switch to warning in case of resource origin clash. (#10947)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tener authored Mar 8, 2022
1 parent 93a89a0 commit c0205a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/services/reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,9 @@ func (r *Reconciler) processNewResource(ctx context.Context, currentResources ty
return nil
}

// Don't overwrite resource of a different origin.
// Don't overwrite resource of a different origin (e.g., keep static resource from config and ignore dynamic resource)
if registered.Origin() != new.Origin() {
r.log.Debugf("%v has different origin (%v vs %v), not updating.", new.GetName(),
r.log.Warnf("%v has different origin (%v vs %v), not updating.", new.GetName(),
new.Origin(), registered.Origin())
return nil
}
Expand Down

0 comments on commit c0205a7

Please sign in to comment.