Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to warning in case of resource origin clash. #10947

Merged
merged 2 commits into from
Mar 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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