-
Notifications
You must be signed in to change notification settings - Fork 59
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
Opentelemetry Collector is not removed on stack uninstall #365
Comments
Seems like operator either doesn't have enough time to remove the collector Deployment or it doesn't have this feature coded. This issue may slip to next milestone. |
This is happening because we are annotating the The only solution I can see now is instructing users to manually delete the CR (+ other resources annotated as hook, if required) similar to how we instruct them for secrets etc. WDYT about this @paulfantom ? [1] https://helm.sh/docs/topics/charts_hooks/#hook-resources-are-not-managed-with-corresponding-releases |
I agree, we'll need to document the uninstallation process in detail and point to helm shortcomings as of why this is needed. I also think it would be good to instruct users to use a dedicated namespace when using tobs as removal would be trivial at that point (simple Either way let's put this in a backlog for now. |
I wonder if we can potentially tie the CR to some other object with kubernetes metadata.ownerReferences. 🤔 This way we would move removal responsibility from helm to kubernetes. |
Just adding to this, it makes it pretty impossible to run multiple tests using |
#535 is related as it instructs the user to manually delete the |
After some research and testing I don't think we can use the So for example if we set the
|
Related otel issue: open-telemetry/opentelemetry-helm-charts#69 |
The main difference between otel-operator and prometheus-operator is that when the prometheus-operator is removed, either via Helm chart or through the release manifest, the CRD is removed. With otel-operator the CRD is in left intact after the operator is removed. This will leave any collectors that are configured. |
@paulfantom what if we switched from using the operator to using the collector Helm chart instead? I assume that at some point we would want to add support for |
We cannot switch from operator helm chart as we want to have an ability to use auto-instrumentation feature provided only by the operator. |
What happened?
Run
tobs uninstall
and otel collector deployment was still running.Did you expect to see something different?
All components should be removed
How to reproduce it (as minimally and precisely as possible):
tobs install -y && tobs uninstall
Environment
tobs version:
0.10.0
Kubernetes version information:
1.23
Kubernetes cluster kind:
kind
The text was updated successfully, but these errors were encountered: