-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.Indicates that an issue or PR should not be auto-closed due to staleness.
Description
Expected Behavior
A sidecar might need to complete any pending work before being torn down (eg, uploading metadata).
Actual Behavior
Sidecars are replaced with a nop image as soon as a TaskRun completes preventing any cleanup work.
Steps to Reproduce the Problem
- Create a TaskRun
- Using an AdmissionsController to inject a sidecar that streams output from the Task to another service.
We would expect all of the output to be uploaded as the task runs but whatever chunk isn't uploaded before the sidecar is torn down is presumably lost.
Additional Info
There are ways around this but it seems to me that the very least, a sidecar should receive the kill signal so it can handle shutdown however it needs to. A timeout can always been inserted to ensure it doesn't hang forever.
Vstural, andreyvelich, lugeng and dlydiard
Metadata
Metadata
Assignees
Labels
kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.Indicates that an issue or PR should not be auto-closed due to staleness.
Type
Projects
Status
Done