@@ -266,7 +266,7 @@ func TaskContainers(api spec.API, job *spec.JobKey) ([]kcore.Container, []kcore.
266
266
267
267
containerDeathDependencies := containerNames .Copy ()
268
268
containerDeathDependencies .Remove (c .Name )
269
- containerDeathEnvVars := getKubexitEnvVars (c .Name , containerDeathDependencies .Slice (), nil )
269
+ containerDeathEnvVars := getKubexitEnvVars (c .Name , containerDeathDependencies .SliceSorted (), nil )
270
270
containers [i ].Env = append (containers [i ].Env , containerDeathEnvVars ... )
271
271
272
272
if c .Command [0 ] != "/cortex/kubexit" {
@@ -303,7 +303,7 @@ func BatchContainers(api spec.API, job *spec.BatchJob) ([]kcore.Container, []kco
303
303
304
304
containerDeathDependencies := containerNames .Copy ()
305
305
containerDeathDependencies .Remove (c .Name )
306
- containerDeathEnvVars := getKubexitEnvVars (c .Name , containerDeathDependencies .Slice (), nil )
306
+ containerDeathEnvVars := getKubexitEnvVars (c .Name , containerDeathDependencies .SliceSorted (), nil )
307
307
containers [i ].Env = append (containers [i ].Env , containerDeathEnvVars ... )
308
308
309
309
if c .Command [0 ] != "/cortex/kubexit" {
0 commit comments