Skip to content

Commit

Permalink
Do not hardcode APIVersion in GetTaskRunRef 👼
Browse files Browse the repository at this point in the history
Let's use SchemeGroupVersion instead.

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
  • Loading branch information
vdemeester authored and tekton-robot committed Nov 15, 2019
1 parent 1261340 commit 8638211
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apis/pipeline/v1alpha1/pipelinerun_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ type PipelineTaskRun struct {
// GetTaskRunRef for pipelinerun
func (pr *PipelineRun) GetTaskRunRef() corev1.ObjectReference {
return corev1.ObjectReference{
APIVersion: "tekton.dev/v1alpha1",
APIVersion: SchemeGroupVersion.String(),
Kind: "TaskRun",
Namespace: pr.Namespace,
Name: pr.Name,
Expand Down

0 comments on commit 8638211

Please sign in to comment.