-
Notifications
You must be signed in to change notification settings - Fork 26
New environment variable for control set_import_users() #1189
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
Conversation
ROX_COLLECTOR_SET_IMPORT_USERS defaults to false, and is used to configure sinsp and its user-mgmt subsystem. This is intended as a safeguard in case we would need to reenable it; and was deactivated to circumvent a memory management issue (CRI not available => containers never freed in user.cpp)
Skipping CI for Draft Pull Request. |
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.
LGTM!
|
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.
Looks good, but probably ...SET...
is not needed. sinsp
uses it as verb, so ROX_COLLECTOR_IMPORT_USERS
would be more straightforward.
It makes sense. I based my choice on the CURL flag, since it is similarly setting configuration for an other component, whereas flags like the core_bpf hard fail are behaviors of the collector logic itself. |
Ah, I see. There seems to be some inconsistency here, so I don't mind it be either way. |
ROX_COLLECTOR_SET_IMPORT_USERS defaults to false, and is used to configure sinsp and its user-mgmt subsystem. This is intended as a safeguard in case we would need to reenable it; and was deactivated to circumvent a memory management issue (CRI not available => containers never freed in user.cpp)
* Disable the import-users flag (#1186) When the CRI is not available, the containers are never declared destroyed; and the user-manager keeps user information forever. * New environment variable to control set_import_users() (#1189) ROX_COLLECTOR_SET_IMPORT_USERS defaults to false, and is used to configure sinsp and its user-mgmt subsystem. This is intended as a safeguard in case we would need to reenable it; and was deactivated to circumvent a memory management issue (CRI not available => containers never freed in user.cpp)
Description
ROX_COLLECTOR_SET_IMPORT_USERS defaults to false, and is used to configure sinsp and its user-mgmt subsystem.
This is intended as a safeguard in case we would need to reenable it; and was deactivated to circumvent a memory management issue (CRI not available => containers never freed in user.cpp)
A detailed explanation of the changes in your PR.
Feel free to remove this section if it is overkill for your PR, and the title of your PR is sufficiently descriptive.
Checklist