-
Notifications
You must be signed in to change notification settings - Fork 12
feat: Include logs of all containers in error message #214
Conversation
Just by quickly looking at the code: I am not sure we want to include always the full logs of all containers all the time (think about the successful runs the would include logs from the init container every time) because the output could become polluted. |
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.
After some deeper review, here are my change requests:
- Do not output initcontainer logs UNLESS initcontainer or any other container fails (if initcontainer succeeds but the 2nd container fails, we need both log outputs)
- Always output container logs of non-initcontainers
- Ensure minimum interference with existing output, e.g.:
previous output
Job job-executor-service-job-613f1259-f94f-4948-a3c0-7c97-1 finished successfully!
Logs:
...
- Please keep the container name though, that's super helpful
1b9351d
to
2d1f340
Compare
76672ff
to
8332598
Compare
Signed-off-by: Raphael Ludwig <raphael.ludwig@dynatrace.com>
Signed-off-by: Raphael Ludwig <raphael.ludwig@dynatrace.com>
Signed-off-by: Raphael Ludwig <raphael.ludwig@dynatrace.com>
…account error Signed-off-by: Raphael Ludwig <raphael.ludwig@dynatrace.com>
8332598
to
7f43233
Compare
Signed-off-by: Raphael Ludwig <raphael.ludwig@dynatrace.com>
d029802
to
5b376da
Compare
The following Docker Images have been built:
|
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.
LGTM
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.
It's not solving #125 (still gives me Task 'Run helm' failed: max poll count reached for job job-executor-service-job-18a4f937-0918-412f-a38a-bdeb-1. Timing out after 5m1.048032241s
), The reason behind is that the pod is not spawning at all :D
Other then that, it nicely solves #124 and it provides the logs that we needed in a readable and structured format.
LGTM
Log Example:
|
This PR
Solves
.finished
event with proper message and status if initcontainer fails #124