mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-04 13:22:41 +08:00
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:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user