Skip to content

Commit

Permalink
Fix issue for system with limited access
Browse files Browse the repository at this point in the history
In case the TaskRun cannot be looked up, only the default error message was
used for the output. Especially, in automated processes with no access to
the respective cluster, this was not helpful.

Remove TaskRun dependency from the convenience error creation code.
  • Loading branch information
HeavyWombat committed Jan 26, 2021
1 parent 35d7f28 commit 90af144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/load/kubeops.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ func buildRunError(kubeAccess KubeAccess, buildRun buildv1alpha1.BuildRun) error
return nil
}

if taskRun, taskRunPod := lookUpTaskRunAndPod(kubeAccess, buildRun); taskRun != nil && taskRunPod != nil {
if _, taskRunPod := lookUpTaskRunAndPod(kubeAccess, buildRun); taskRunPod != nil {
var buf bytes.Buffer
var colorise = func(s string) string {
var h = fnv.New32()
Expand Down

0 comments on commit 90af144

Please sign in to comment.