From 451e4d33f4b01cf0a264db54f46cc89f21ec8962 Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Thu, 9 Apr 2020 11:29:17 +0200 Subject: [PATCH] =?UTF-8?q?Mark=20PipelienResourceBinding=20as=20inlined?= =?UTF-8?q?=20=F0=9F=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without this, using `Unstructured` to unmarshall the structs will result in empty/nil resources. Signed-off-by: Vincent Demeester --- pkg/apis/pipeline/v1beta1/taskrun_types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/apis/pipeline/v1beta1/taskrun_types.go b/pkg/apis/pipeline/v1beta1/taskrun_types.go index c6ee26fa05f..59f9b5321c6 100644 --- a/pkg/apis/pipeline/v1beta1/taskrun_types.go +++ b/pkg/apis/pipeline/v1beta1/taskrun_types.go @@ -75,7 +75,7 @@ type TaskRunInputs struct { // TaskResourceBinding points to the PipelineResource that // will be used for the Task input or output called Name. type TaskResourceBinding struct { - PipelineResourceBinding + PipelineResourceBinding `json:",inline"` // Paths will probably be removed in #1284, and then PipelineResourceBinding can be used instead. // The optional Path field corresponds to a path on disk at which the Resource can be found // (used when providing the resource via mounted volume, overriding the default logic to fetch the Resource).