-
Notifications
You must be signed in to change notification settings - Fork 450
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
feat/add shareProcessName capability #2472
Conversation
What do you need the SIGHUP reload for, if I may ask? I'm not opposed to adding this attribute, but reloading config via a signal seems like an antipattern in Kubernetes. We already restart collector Pods whenever configuration changes, |
|
Hi @swiatekm-sumo While the bulk of the configuration is indeed static and managed by the controller, a small section of it, the filter section,
is dynamic in our use case and usually varies from cluster to cluster. P.S: pushed the missing manifests change. Happy holidays. |
Hi @swiatekm-sumo Pushed missing changelog file. Any comments/feedback on this? Ty |
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.
Could you also set this in one of the E2E tests?
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.
@bmiguel-teixeira you've got some failures in the builder unit tests. Other than that, I think we're good to go.
hi @swiatekm-sumo Fixed unit tests. Unit and e2e all good locally. ty |
@bmiguel-teixeira you still have a minor lint issue. |
@swiatekm-sumo done. 🤞 |
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, thanks for your patience!
@jaronoff97 we probably want to add this attribute to common fields as well.
yep, i'll open a follow up issue for that, no need to further block this. |
Description:
Adding an additional field to the OpenTelemetryCollector CRD called
shareProcessNamespace
that essentially toggles the equivalent field in the PodSpec of the generated resources (DS, Deployment or STS).No issue opened on my side.
The reason for this addition in to allow configuration reloads. The OtelCollectors allow config reload via SIGHUP, but there is currently no way to this via the
additionalContainers
field without this capability.Testing:
Unit tests added.
Documentation: