diff --git a/pkg/reconciler/pipelinerun/pipelinerun.go b/pkg/reconciler/pipelinerun/pipelinerun.go index d69efe2f011..591e7a05bef 100644 --- a/pkg/reconciler/pipelinerun/pipelinerun.go +++ b/pkg/reconciler/pipelinerun/pipelinerun.go @@ -1398,7 +1398,7 @@ func updatePipelineRunStatusFromChildRefs(logger *zap.SugaredLogger, pr *v1beta1 childRefByName[tr.Name] = &v1beta1.ChildStatusReference{ TypeMeta: runtime.TypeMeta{ APIVersion: v1beta1.SchemeGroupVersion.String(), - Kind: "TaskRun", + Kind: pipeline.TaskRunControllerName, }, Name: tr.Name, PipelineTaskName: pipelineTaskName, @@ -1420,7 +1420,7 @@ func updatePipelineRunStatusFromChildRefs(logger *zap.SugaredLogger, pr *v1beta1 childRefByName[r.Name] = &v1beta1.ChildStatusReference{ TypeMeta: runtime.TypeMeta{ APIVersion: v1alpha1.SchemeGroupVersion.String(), - Kind: "Run", + Kind: pipeline.RunControllerName, }, Name: r.Name, PipelineTaskName: pipelineTaskName, diff --git a/pkg/reconciler/pipelinerun/resources/pipelinerunstate.go b/pkg/reconciler/pipelinerun/resources/pipelinerunstate.go index 01713529bb1..cad73e8448d 100644 --- a/pkg/reconciler/pipelinerun/resources/pipelinerunstate.go +++ b/pkg/reconciler/pipelinerun/resources/pipelinerunstate.go @@ -262,7 +262,7 @@ func (state PipelineRunState) GetChildReferences() []v1beta1.ChildStatusReferenc func (rprt *ResolvedPipelineRunTask) getChildRefForRun() v1beta1.ChildStatusReference { return v1beta1.ChildStatusReference{ TypeMeta: runtime.TypeMeta{ - APIVersion: rprt.Run.APIVersion, + APIVersion: v1alpha1.SchemeGroupVersion.String(), Kind: pipeline.RunControllerName, }, Name: rprt.RunName, @@ -274,7 +274,7 @@ func (rprt *ResolvedPipelineRunTask) getChildRefForRun() v1beta1.ChildStatusRefe func (rprt *ResolvedPipelineRunTask) getChildRefForTaskRun(taskRun *v1beta1.TaskRun) v1beta1.ChildStatusReference { return v1beta1.ChildStatusReference{ TypeMeta: runtime.TypeMeta{ - APIVersion: taskRun.APIVersion, + APIVersion: v1beta1.SchemeGroupVersion.String(), Kind: pipeline.TaskRunControllerName, }, Name: taskRun.Name,