Skip to content

Commit

Permalink
update label for tf-controller (#1474)
Browse files Browse the repository at this point in the history
  • Loading branch information
zw0610 authored Nov 21, 2021
1 parent 633ec1f commit 9894d67
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/controller.v1/tensorflow/tfjob_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,8 @@ func (r *TFJobReconciler) createNewPod(tfjob *tfv1.TFJob, rt, index string, spec
labels := r.GenLabels(tfjob.Name)
labels[tfReplicaTypeLabel] = rt
labels[tfReplicaIndexLabel] = index
labels[commonv1.ReplicaTypeLabel] = rt
labels[commonv1.ReplicaIndexLabel] = index

if masterRole {
labels[commonv1.JobRoleLabel] = "master"
Expand Down

0 comments on commit 9894d67

Please sign in to comment.