From 702e4b2d72a5cc4357ba6825375201cd02912205 Mon Sep 17 00:00:00 2001 From: Jason Hall Date: Tue, 14 Jan 2020 13:53:10 -0500 Subject: [PATCH] Add JSON struct tag for Workspaces field --- pkg/apis/pipeline/v1alpha1/task_types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/apis/pipeline/v1alpha1/task_types.go b/pkg/apis/pipeline/v1alpha1/task_types.go index b0698646547..e2cdf5eca22 100644 --- a/pkg/apis/pipeline/v1alpha1/task_types.go +++ b/pkg/apis/pipeline/v1alpha1/task_types.go @@ -63,7 +63,7 @@ type TaskSpec struct { Sidecars []corev1.Container `json:"sidecars,omitempty"` // Workspaces are the volumes that this Task requires. - Workspaces []WorkspaceDeclaration + Workspaces []WorkspaceDeclaration `json:"workspaces,omitempty"` } // Step embeds the Container type, which allows it to include fields not