Skip to content

Commit

Permalink
deleting hard coded taskrun controller name
Browse files Browse the repository at this point in the history
GetRunType returns the unique ID for taskrun in the form of
TaskRunControllerName/address of *tr

TaskRun was hardcoded in this formula.
  • Loading branch information
pritidesai authored and tekton-robot committed Jul 25, 2020
1 parent 172cd19 commit 9ec022e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apis/pipeline/v1beta1/taskrun_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ func (tr *TaskRun) GetTimeout() time.Duration {
// GetRunKey return the taskrun key for timeout handler map
func (tr *TaskRun) GetRunKey() string {
// The address of the pointer is a threadsafe unique identifier for the taskrun
return fmt.Sprintf("%s/%p", "TaskRun", tr)
return fmt.Sprintf("%s/%p", pipeline.TaskRunControllerName, tr)
}

// IsPartOfPipeline return true if TaskRun is a part of a Pipeline.
Expand Down

0 comments on commit 9ec022e

Please sign in to comment.