diff --git a/pkg/apis/pipeline/v1/merge.go b/pkg/apis/pipeline/v1/merge.go index b500ef87587..45798c3726f 100644 --- a/pkg/apis/pipeline/v1/merge.go +++ b/pkg/apis/pipeline/v1/merge.go @@ -20,7 +20,6 @@ import ( "encoding/json" corev1 "k8s.io/api/core/v1" - v1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/util/strategicpatch" ) @@ -81,7 +80,7 @@ func MergeStepsWithSpecs(steps []Step, overrides []TaskRunStepSpec) ([]Step, err if !found { continue } - merged := v1.ResourceRequirements{} + merged := corev1.ResourceRequirements{} err := mergeObjWithTemplate(&s.ComputeResources, &o.ComputeResources, &merged) if err != nil { return nil, err @@ -107,7 +106,7 @@ func MergeSidecarsWithSpecs(sidecars []Sidecar, overrides []TaskRunSidecarSpec) if !found { continue } - merged := v1.ResourceRequirements{} + merged := corev1.ResourceRequirements{} err := mergeObjWithTemplate(&s.ComputeResources, &o.ComputeResources, &merged) if err != nil { return nil, err diff --git a/pkg/apis/pipeline/v1/pipelinerun_types.go b/pkg/apis/pipeline/v1/pipelinerun_types.go index 88aad636b89..26afd74faaf 100644 --- a/pkg/apis/pipeline/v1/pipelinerun_types.go +++ b/pkg/apis/pipeline/v1/pipelinerun_types.go @@ -22,7 +22,6 @@ import ( "time" "github.com/tektoncd/pipeline/pkg/apis/config" - apisconfig "github.com/tektoncd/pipeline/pkg/apis/config" "github.com/tektoncd/pipeline/pkg/apis/pipeline" pod "github.com/tektoncd/pipeline/pkg/apis/pipeline/pod" runv1beta1 "github.com/tektoncd/pipeline/pkg/apis/run/v1beta1" @@ -117,7 +116,7 @@ func (pr *PipelineRun) TasksTimeout() *metav1.Duration { return t.Tasks } if t.Pipeline != nil && t.Finally != nil { - if t.Pipeline.Duration == apisconfig.NoTimeoutDuration || t.Finally.Duration == apisconfig.NoTimeoutDuration { + if t.Pipeline.Duration == config.NoTimeoutDuration || t.Finally.Duration == config.NoTimeoutDuration { return nil } return &metav1.Duration{Duration: (t.Pipeline.Duration - t.Finally.Duration)} @@ -136,7 +135,7 @@ func (pr *PipelineRun) FinallyTimeout() *metav1.Duration { return t.Finally } if t.Pipeline != nil && t.Tasks != nil { - if t.Pipeline.Duration == apisconfig.NoTimeoutDuration || t.Tasks.Duration == apisconfig.NoTimeoutDuration { + if t.Pipeline.Duration == config.NoTimeoutDuration || t.Tasks.Duration == config.NoTimeoutDuration { return nil } return &metav1.Duration{Duration: (t.Pipeline.Duration - t.Tasks.Duration)}