Skip to content

Commit

Permalink
Merge d3967a6 into 8d179f7
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangkaihua committed Apr 2, 2021
2 parents 8d179f7 + d3967a6 commit 1c1d56c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/controller.v1/tensorflow/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ const (
labelGroupName = "group-name"
// Deprecated label for backwards compatibility. Has to be removed
labelTFJobName = "tf-job-name"
// volcanoTaskSpecKey task spec key used in pod annotation when EnableGangScheduling is true
volcanoTaskSpecKey = "volcano.sh/task-spec"
)

var (
Expand Down
1 change: 1 addition & 0 deletions pkg/controller.v1/tensorflow/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ func (tc *TFController) createNewPod(tfjob *tfv1.TFJob, rt, index string, spec *
podTemplate.Annotations = map[string]string{}
}
podTemplate.Annotations[gangSchedulingPodGroupAnnotation] = tfjob.GetName()
podTemplate.Annotations[volcanoTaskSpecKey] = rt
}

err = tc.PodControl.CreatePodsWithControllerRef(tfjob.Namespace, podTemplate, tfjob, controllerRef)
Expand Down

0 comments on commit 1c1d56c

Please sign in to comment.