-
Notifications
You must be signed in to change notification settings - Fork 495
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
Must override target allocator name when app/name is overridden #2598
Comments
Hi @jaronoff97, if this issue hasn't been assigned yet, I would like to help this out :) |
Please take it @changexd |
Hi @pavolloffay @jaronoff97 , I was able to make app name label be propagated to the target allocator with additional checks and mutation of labels, but I would like to know two things before creating a PR:
|
IMO what we have today is actually broken – by not propagating the name for the selector we make it possible for the operator to error when making the TA's deployment. Either we should change the selector or change the labels to match the selector. cc @swiatekm-sumo, we talked about this sometime ago... |
The reason I marked that as a painful breaking change is that the field is immutable, and changing it would require the controller to recreate the Deployment. See https://github.com/open-telemetry/opentelemetry-operator/pull/2455/files#r1433035505 for the original discussion. If it's a problem, we might want to do it anyway, or at least not overwrite the name label if it already exists. The fact that it does this is a bug introduced in #2455, so at the very least we should have a test checking for it. |
thanks for clearing this out, in this case I'll change the selector to propagate name label? since it seems like not overwriting the name label if already exists is our primary goal here. |
That sounds like a fix we can easily do without breaking anything, yes. |
closed by #2632 |
Component(s)
operator, target allocator
What happened?
Description
Right now if a user sets the app name label for the collector, we don't propagate down to the target allocator which results in the following:
Steps to Reproduce
override
app.kubernetes.io/name
in a collector CRD with TA enabled.Expected Result
TA rolls out fine
Actual Result
operator errors.
Kubernetes Version
1.29.0
Operator version
0.93.0
Collector version
0.93.0
Environment information
Environment
OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: