Skip to content

Commit

Permalink
chore: Fix missspell in tfjob (#1490)
Browse files Browse the repository at this point in the history
  • Loading branch information
tenzen-y authored Nov 27, 2021
1 parent ea79af8 commit 50618bc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/common/util/v1/testutil/tfjob.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func NewTFJob(worker, ps int) *tfv1.TFJob {
return tfJob
}

func NewTFJobV2(worker, ps, master, cheif, evaluator int) *tfv1.TFJob {
func NewTFJobV2(worker, ps, master, chief, evaluator int) *tfv1.TFJob {
tfJob := &tfv1.TFJob{
TypeMeta: metav1.TypeMeta{
Kind: TFJobKind,
Expand Down Expand Up @@ -187,13 +187,13 @@ func NewTFJobV2(worker, ps, master, cheif, evaluator int) *tfv1.TFJob {
tfJob.Spec.TFReplicaSpecs[tfv1.TFReplicaTypeMaster] = masterReplicaSpec
}

if cheif > 0 {
cheif := int32(cheif)
cheifReplicaSpec := &commonv1.ReplicaSpec{
Replicas: &cheif,
if chief > 0 {
chief := int32(chief)
chiefReplicaSpec := &commonv1.ReplicaSpec{
Replicas: &chief,
Template: NewTFReplicaSpecTemplate(),
}
tfJob.Spec.TFReplicaSpecs[tfv1.TFReplicaTypeChief] = cheifReplicaSpec
tfJob.Spec.TFReplicaSpecs[tfv1.TFReplicaTypeChief] = chiefReplicaSpec
}

if evaluator > 0 {
Expand Down

0 comments on commit 50618bc

Please sign in to comment.