Add env variable to Job
created by JobSink
for the file path to the event
#7963
Labels
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
kind/feature-request
triage/accepted
Issues which should be fixed (post-triage)
Problem
With the current way that a
Job
is created in theJobSink
, there is some logic that chooses whichVolumeMount
to use to mount the event. As such, the path that the event is mounted at is not guaranteed to be the same for everyJob
created by aJobSink
.The
JobSink
should add an env variableK_EVENT_PATH
into the container that points to the mount path of the volume which is chosen, making it easier to consume the event within the code of the job.Here, we can inject the env variable before creating the job based on where the
jobsink-event
volume directory points toeventing/cmd/jobsink/main.go
Lines 292 to 299 in f9156c8
Persona:
Which persona is this feature for? Developers
Exit Criteria
A measurable (binary) test that would indicate that the problem has been resolved.
Time Estimate (optional):
How many developer-days do you think this may take to resolve? 1
The text was updated successfully, but these errors were encountered: