-
Notifications
You must be signed in to change notification settings - Fork 452
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
Using immutable labels as service selectors #1152
Using immutable labels as service selectors #1152
Conversation
CI failed |
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 please check the selector lebels in the e2e test ? ###
https://github.com/open-telemetry/opentelemetry-operator/blob/main/tests/e2e/smoke-simplest/00-assert.yaml#L43 and for the headless as well
pkg/collector/reconcile/service.go
Outdated
// whereas 'labels' refers to the service | ||
selector := labels | ||
selector := collector.SelectorLabels(params.Instance) | ||
selector["app.kubernetes.io/name"] = naming.Service(params.Instance) |
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.
Do we need this label? there is already "app.kubernetes.io/instance": naming.Truncate("%s.%s", 63, instance.Namespace, instance.Name),
6e29f4f
to
a014c63
Compare
We could add a check for all other selector labels, but I'm not sure if we could for What do you think? Any suggestion? |
@angelokurtis the upgrade tests are failing, can you look into them? |
e5d4451
to
aae4f8d
Compare
* Using immutable labels as service selectors * Fixing expected service selectors * Removing unnecessary selector Co-authored-by: Vineeth Pothulapati <[email protected]>
fixes #1107