Improves error handling in TektonHub and reorder the job in TektonInstallerSet#645
Conversation
|
The following is the coverage report on the affected files.
|
82ac937 to
39ce4b1
Compare
39ce4b1 to
d254e2b
Compare
| installerSet.Status.MarkControllerReady() | ||
|
|
||
| // job | ||
| err = installer.IsJobCompleted() |
There was a problem hiding this comment.
Could you add a log here (info nor error) as the result of this check is not going to show up in any of the existing InstallerSet status conditions.
4277686 to
585010e
Compare
| job := installer.Manifest.Filter(mf.ByKind("Job")).Resources()[0] | ||
| labels := installerSet.GetLabels() | ||
| logger.Info("job not ready in installerset, name: %s, created-by: %s, in namespace: %s", installerSet.GetName(), labels[v1alpha1.CreatedByKey], job.GetNamespace()) | ||
| return err |
There was a problem hiding this comment.
this will work but let us move this to
Doing so will make it easy to report on each job in the installerset instead of focusing on Job[0].
There was a problem hiding this comment.
on this line (368) we still need to return the error, but add the log right before it.
There was a problem hiding this comment.
I have updated the patch could you please take a look at it once 🙂
585010e to
d5ca47e
Compare
|
The following is the coverage report on the affected files.
|
|
/test pull-tekton-operator-integration-tests |
1 similar comment
|
/test pull-tekton-operator-integration-tests |
|
/lgtm |
|
/retest |
|
/test pull-tekton-operator-integration-tests |
|
/retest |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vdemeester The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…tallerSet Signed-off-by: Puneet Punamiya <ppunamiy@redhat.com>
d5ca47e to
72661b2
Compare
|
The following is the coverage report on the affected files.
|
|
/lgtm |
Changes
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
See the contribution guide for more details.
Release Notes