-
Notifications
You must be signed in to change notification settings - Fork 79
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
helm test fails to collect logs from test job pod #662
Comments
Just to confirm - the logs are actually there, example to retrieve:
|
The issue is that the test is run in a Kubernetes Job, not a Pod. Helm test cannot get logs from Jobs (helm/helm#11236). Why not just make it a Pod? Because then it always fails on the first run, because there's no restart policies. This test will only pass after Alloy has had a chance to gather metrics, logs, traces, profiles, and send them to their data stores. This often only is true after a few minutes of runtime. |
So, options:
I'm leaning towards 1, personally. |
Option 1 sounds good to me, since most installation problems will result in unhealthy or unavailable pods. |
Likely, what I'll do is just keep things the same and then use smarter things going forward with 2.0. I do want to utilize |
When I run
helm test --logs
per the documentation here, I get an error on collecting logs from a test job pod.Result:
Checking events suggests the pod has a slightly different name:
I would expect the test routine to collect logs regardless of what the generated pod is called.
Cluster info:
The text was updated successfully, but these errors were encountered: