Skip to content

Commit

Permalink
status: Add comments
Browse files Browse the repository at this point in the history
Signed-off-by: Ce Gao <gaoce@caicloud.io>
  • Loading branch information
gaocegege committed Aug 30, 2018
1 parent b658d97 commit 2ae580c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/controller.v2/tfcontroller/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ func updateStatusSingle(tfjob *tfv1alpha2.TFJob, rtype tfv1alpha2.TFReplicaType,
tfjob.Status.StartTime = &now
}

// If the TFJob contains Chief or Master spec, then we will update the status
// according to the Chief/Master spec.
if ContainChieforMasterSpec(tfjob) {
if tfv1alpha2.IsChieforMaster(rtype) {
if running > 0 {
Expand Down

0 comments on commit 2ae580c

Please sign in to comment.