You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While working with the Tekton API as part of the cli project, I was adding validation to the tkn tr describe and tkn pr describe commands to check whether the properties are present on taskrun and pipelinerun specs. For taskruns, I used a nil check to determine if the TaskRef is present. For pipelineruns, I had to used an empty string for PipelineRef.
I am wondering why TaskRef is defined as follows here:
TaskRef *TaskRef json:"taskRef,omitempty"
And why a different approach was taken with PipelineRef here:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
While working with the Tekton API as part of the cli project, I was adding validation to the
tkn tr describe
andtkn pr describe
commands to check whether the properties are present on taskrun and pipelinerun specs. For taskruns, I used a nil check to determine if the TaskRef is present. For pipelineruns, I had to used an empty string for PipelineRef.I am wondering why TaskRef is defined as follows here:
TaskRef *TaskRef
json:"taskRef,omitempty"
And why a different approach was taken with PipelineRef here:
PipelineRef PipelineRef
json:"pipelineRef,omitempty"
What was the thought behind using the
*
operator for TaskRef whereas all other Refs do not?The text was updated successfully, but these errors were encountered: