Skip to content

Commit

Permalink
Mark PipelienResourceBinding as inlined πŸ‘
Browse files Browse the repository at this point in the history
Without this, using `Unstructured` to unmarshall the structs will
result in empty/nil resources.

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
  • Loading branch information
vdemeester committed Apr 14, 2020
1 parent 35fbdaa commit 261bfd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apis/pipeline/v1beta1/taskrun_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit 261bfd3

Please sign in to comment.