@@ -24,7 +24,7 @@ import (
24
24
"github.com/tektoncd/cli/pkg/actions"
25
25
"github.com/tektoncd/cli/pkg/chain"
26
26
"github.com/tektoncd/cli/pkg/cli"
27
- "github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1 "
27
+ v1 "github.com/tektoncd/pipeline/pkg/apis/pipeline/v1 "
28
28
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
29
29
)
30
30
@@ -60,7 +60,7 @@ func payloadCommand(p cli.Params) *cobra.Command {
60
60
}
61
61
62
62
// Retrieve the taskrun.
63
- var taskrun * v1beta1 .TaskRun
63
+ var taskrun * v1 .TaskRun
64
64
if err = actions .GetV1 (taskrunGroupResource , cs , taskName , p .Namespace (), metav1.GetOptions {}, & taskrun ); err != nil {
65
65
return fmt .Errorf ("failed to get TaskRun %s: %v" , taskName , err )
66
66
}
@@ -73,7 +73,7 @@ func payloadCommand(p cli.Params) *cobra.Command {
73
73
return c
74
74
}
75
75
76
- func printPayloads (cs * cli.Clients , namespace string , tr * v1beta1 .TaskRun , skipVerify bool ) error {
76
+ func printPayloads (cs * cli.Clients , namespace string , tr * v1 .TaskRun , skipVerify bool ) error {
77
77
// Get the storage backend.
78
78
backends , opts , err := chain .GetTaskRunBackends (cs , namespace , tr )
79
79
if err != nil {
@@ -93,7 +93,7 @@ func printPayloads(cs *cli.Clients, namespace string, tr *v1beta1.TaskRun, skipV
93
93
}
94
94
95
95
// Fetch the payload.
96
- trObj := objects .NewTaskRunObject (tr )
96
+ trObj := objects .NewTaskRunObjectV1 (tr )
97
97
payloads , err := backend .RetrievePayloads (context .Background (), trObj , opts )
98
98
if err != nil {
99
99
return fmt .Errorf ("error retrieving the payloads: %s" , err )
0 commit comments