Tweaking the dependencies of the sys-exit task.

- This ensures that multiple sidecars will vertically end
at the sys-exit task.
This commit is contained in:
Aleksandr Melnikov
2020-11-10 15:07:18 -08:00
parent 806d15f4c9
commit a67012f893

View File

@@ -682,7 +682,7 @@ func (c *Client) injectAccessForSidecars(namespace string, wf *wfv1.Workflow) ([
for dti, dt := range t.DAG.Tasks {
if dt.Name == taskSysSendExitStats {
sysExitDepFound = true
t.DAG.Tasks[dti].Dependencies = []string{virtualServiceDeleteTaskName}
t.DAG.Tasks[dti].Dependencies = append(t.DAG.Tasks[dti].Dependencies, virtualServiceDeleteTaskName)
}
}
if sysExitDepFound == false {