-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
handle conflict error in instrumentation config updates (#1737)
A typical error we see when trying to update the instrumentation config CR is: > 2024-11-12T08:43:28Z ERROR error updating instrumentation config {"controller": "instrumentor-instrumentationconfig-instrumentedapplication", "controllerGroup": "odigos.io", "controllerKind": "InstrumentedApplication", "InstrumentedApplication": {"name":"deployment-pricing","namespace":"simple-demo19"}, "namespace": "simple-demo19", "name": "deployment-pricing", "reconcileID": "8c980fc2-ead9-47c7-b2ac-69be6e880002", "workload": "deployment-pricing", "error": "Operation cannot be fulfilled on instrumentationconfigs.odigos.io \"deployment-pricing\": the object has been modified; please apply your changes to the latest version and try again"} This is due to the Get and Update pattern we use. Following #1710 , use the update error util for this case as well. Adding to the error handling util - a check for `IsNotFound` error and ignoring it. --------- Co-authored-by: Amir Blum <[email protected]>
- Loading branch information
Showing
4 changed files
with
22 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters