Skip to content

Commit

Permalink
Inline the ResourceDeclaration struct in TaskResource
Browse files Browse the repository at this point in the history
Before the commit 92d5bcc, attributes
of `ResourceDeclaration` belong to `TaskResource`.

This avoids generated JSON structures to contain the useless
`ResourceDeclaration` attribute.
  • Loading branch information
nlewo authored and tekton-robot committed Oct 3, 2019
1 parent 5563e21 commit 0351c6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apis/pipeline/v1alpha1/task_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ type Inputs struct {
// path to the volume mounted containing this Resource as an input (e.g.
// an input Resource named `workspace` will be mounted at `/workspace`).
type TaskResource struct {
ResourceDeclaration
ResourceDeclaration `json:",inline"`
// +optional
OutputImageDir string `json:"outputImageDir,omitempty"`
}
Expand Down

0 comments on commit 0351c6d

Please sign in to comment.