Skip to content

Commit

Permalink
Fix Job status SubmitterName (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
regadas authored Oct 20, 2021
1 parent d91b969 commit 16a1830
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions controllers/flinkcluster_updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -540,10 +540,12 @@ func (updater *ClusterStatusUpdater) deriveJobStatus() *v1beta1.JobStatus {
newJob = oldJob.DeepCopy()
} else {
newJob = new(v1beta1.JobStatus)
if observedSubmitter.job != nil {
newJob.SubmitterName = observedSubmitter.job.Name
}
}

if observedSubmitter.job != nil {
newJob.SubmitterName = observedSubmitter.job.Name
}

var newJobState string
switch {
case oldJob == nil:
Expand Down

0 comments on commit 16a1830

Please sign in to comment.