-
Notifications
You must be signed in to change notification settings - Fork 206
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
chore: migrate ebpf manager from device to distro name env #2401
Conversation
if distroName != "" { | ||
// TODO: so we can remove the device slowly while having backward compatibility, | ||
// we map here the distroNames one by one. | ||
// this is temporary, and should be refactored once device is removed |
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.
Aside from removing the device fallback, is there another refactor needed here in the future?
From the comment, it seems like there is a generic way to convert distro name to language and sdk.
I assume the plan is to not have language and sdk in the futrure just use the distro name,
For that, we will need to modify the factories map keys used by the manager to be distro name.
Is that right?
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.
Yes exactly
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.
we already have `instrumentor/internal/webhook_env_injector"
I agree that they operate on different kinds of env vars, but I think those logics should be in the same package
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.
as I refactor this part, I intend to move the functions to the controller, similar to how it's done in the rollout directory
As part of the effort to remove instrumentation device, this PR:
ODIGOS_DISTRO_NAME
to describe the name of the distro injected to the pod./var/odigos
mount, or not.