Skip to content

Commit 6af39ec

Browse files
committed
refactor: rename getJobConditionFromJobStatus to findJobCondition for clarity
1 parent b5fb4b9 commit 6af39ec

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/apis/job/job.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ func (job *Job) syncStatus(ctx context.Context, reconcileErr error) error {
252252
if err != nil {
253253
return err
254254
}
255-
condition, err = job.getJobConditionFromJobStatus(pipelineJob.Status)
255+
condition, err = job.findJobCondition(pipelineJob.Status)
256256
if err != nil {
257257
return err
258258
}

pkg/apis/job/kubejob.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ func getPushImageTag(pushImage bool) string {
272272
return "0"
273273
}
274274

275-
func (job *Job) getJobConditionFromJobStatus(jobStatus batchv1.JobStatus) (radixv1.RadixJobCondition, error) {
275+
func (job *Job) findJobCondition(jobStatus batchv1.JobStatus) (radixv1.RadixJobCondition, error) {
276276
if jobStatus.Failed > 0 {
277277
return radixv1.JobFailed, nil
278278
}

0 commit comments

Comments
 (0)