Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typochanges in line 81 and 94. I have changed it to "ResourceRef" from "ResourseRef". #6184

Merged
merged 1 commit into from
Feb 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkg/reconciler/taskrun/resources/taskresourceresolution.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func ResolveTaskResources(ts *v1beta1.TaskSpec, taskName string, kind v1beta1.Ta
// instantiating it from the embedded spec.
func GetResourceFromBinding(r v1beta1.PipelineResourceBinding, getter GetResource) (*resourcev1alpha1.PipelineResource, error) {
if (r.ResourceRef != nil && r.ResourceRef.Name != "") && r.ResourceSpec != nil {
return nil, errors.New("Both ResourseRef and ResourceSpec are defined. Expected only one")
return nil, errors.New("Both ResourceRef and ResourceSpec are defined. Expected only one")
}
if r.ResourceRef != nil && r.ResourceRef.Name != "" {
return getter(r.ResourceRef.Name)
Expand All @@ -91,5 +91,5 @@ func GetResourceFromBinding(r v1beta1.PipelineResourceBinding, getter GetResourc
Spec: *r.ResourceSpec,
}, nil
}
return nil, errors.New("Neither ResourseRef nor ResourceSpec is defined")
return nil, errors.New("Neither ResourceRef nor ResourceSpec is defined")
}