-
Notifications
You must be signed in to change notification settings - Fork 207
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
Use instrumentation config for runtime details #2115
Use instrumentation config for runtime details #2115
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Frontend looks good to me 😄
instrumentor/controllers/instrumentationdevice/instrumentationconfig_controller.go
Outdated
Show resolved
Hide resolved
@@ -229,40 +229,9 @@ func analyzeRuntimeInfo(resources *OdigosSourceResources) *RuntimeInfoAnalyze { | |||
} | |||
} | |||
|
|||
func analyzeInstrumentedApplication(resources *OdigosSourceResources) InstrumentedApplicationAnalyze { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we also remove InstrumentedApplicationAnalyze
type now?
return false | ||
} | ||
|
||
if len(oldIc.Status.RuntimeDetailsByContainer) != len(newIc.Status.RuntimeDetailsByContainer) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The event filter claims to pass the event if the runtime details changed. here we only check for the length of the array, which is good for now, but we will need to also check the content once it can be updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, Added a comment about this
} | ||
|
||
func (i RuntimeDetailsChangedPredicate) Delete(e event.DeleteEvent) bool { | ||
return false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what will cause odigos to remove the instrumentation device when an app is un-instrumented?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right! a great catch 🥇
Fixed 😄
instrumentationConfig
status.instrumentor/instrumentationdevice
to rely on instrumnentation config, This means that when we add our device as a resource we'll look at the instrumentationConfig to decide.envoverwriter_test
as it becomes un-relevant and conflicts with these changes.workload-lifecycle
chainsaw assertions to be based oninstrumentationConfig
.language-change
deployment from theworkload-lifecycle
test. This is done because a) The test requires the restart of theinstrumentor
which is not the desired behavior and b) The instrumentationConfig is currently enforced to only set the runtime details once, hence we currently don't support this use case.