Skip to content
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

Injected Agent sidecar is never updated #1644

Open
lorenzo-biava opened this issue Nov 29, 2021 · 3 comments
Open

Injected Agent sidecar is never updated #1644

lorenzo-biava opened this issue Nov 29, 2021 · 3 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@lorenzo-biava
Copy link

Describe the bug

The injected Agent sidecar is never updated, even if the container image changes.

To Reproduce
Steps to reproduce the behavior:

  1. Setup the Jaeger CR to with Agent image = A
  2. Create workload with injection annotation enabled and wait for it to get the Agent sidecar
  3. Change the Jaeger CR with Agent image = B
  4. Observe all Deployments/Pods will still use image A (restarting the Operator has no effect).

Expected behavior
The injected Agent image should be updated (as well as other changed properties pertaining to the Agent).

Screenshots
If applicable, add screenshots to help explain your problem.

Version (please complete the following information):

  • Jaeger version: jaeger-operator:1.22.1
  • Deployment: Kubernetes

What troubleshooting steps did you try?
Try to follow https://www.jaegertracing.io/docs/latest/troubleshooting/ and describe how far you were able to progress and/or which steps did not work.

Additional context
Looks like the reconciliation loop only checks whether the sidecar container exists, but doesn't check if the settings are the same as the ones in the Jaeger CR.
See:

@lorenzo-biava lorenzo-biava added the bug Something isn't working label Nov 29, 2021
@rubenvp8510 rubenvp8510 added the help wanted Extra attention is needed label Jan 20, 2022
@rubenvp8510
Copy link
Collaborator

rubenvp8510 commented Apr 6, 2022

@frzifus Do you think the new approach of using webhooks will fix this?

@frzifus
Copy link
Member

frzifus commented May 11, 2022

yes, every change should lead to an reevaluation.

@AshutoshNirkhe
Copy link

AshutoshNirkhe commented Aug 29, 2022

yes, every change should lead to an reevaluation.

@frzifus we have existing user workloads (deployments) that are currently running with jaeger-agent sidecar (with v1.28).
We did upgrade the jaeger operator and jaeger custom resource to v1.34.1. But off course, that didn't trigger user workloads to be updated with new configs added for jaeger sidecar because of this issue.

Then I verified it worked fine for jaeger-query (that also has jaeger-agent as sidecar and was already running at v1.34.1), as it is showing all latest image/configs.

So do we need to ask users to update their jaeger sidecar agent image manually to v1.34 first and then it will trigger the webhook or we need to aks them to totally remove the auto-injection annotation and add it back to force the new jaeger updates (which is off course more disruptive) ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants