Skip to content

Commit

Permalink
Set tfjob defaults in test utils (#1071)
Browse files Browse the repository at this point in the history
  • Loading branch information
ohmystack authored and k8s-ci-robot committed Aug 19, 2019
1 parent d2499dc commit d164c36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/common/util/v1/testutil/tfjob.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ func NewTFJob(worker, ps int) *tfv1.TFJob {
TFReplicaSpecs: make(map[tfv1.TFReplicaType]*common.ReplicaSpec),
},
}
tfv1.SetObjectDefaults_TFJob(tfJob)

if worker > 0 {
worker := int32(worker)
Expand Down
1 change: 1 addition & 0 deletions pkg/common/util/v1beta2/testutil/tfjob.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ func NewTFJob(worker, ps int) *tfv1beta2.TFJob {
TFReplicaSpecs: make(map[tfv1beta2.TFReplicaType]*common.ReplicaSpec),
},
}
tfv1beta2.SetObjectDefaults_TFJob(tfJob)

if worker > 0 {
worker := int32(worker)
Expand Down

0 comments on commit d164c36

Please sign in to comment.