diff --git a/config/300-pipelinerun.yaml b/config/300-pipelinerun.yaml index b941a296e89..17183c8ecbd 100644 --- a/config/300-pipelinerun.yaml +++ b/config/300-pipelinerun.yaml @@ -101,7 +101,7 @@ spec: conversion: strategy: Webhook webhook: - conversionReviewVersions: ["v1beta1"] + conversionReviewVersions: ["v1beta1", "v1"] clientConfig: service: name: tekton-pipelines-webhook diff --git a/pkg/apis/pipeline/v1/pipelinerun_conversion.go b/pkg/apis/pipeline/v1/pipelinerun_conversion.go index 2bb626dda8a..f6155d0f6e8 100644 --- a/pkg/apis/pipeline/v1/pipelinerun_conversion.go +++ b/pkg/apis/pipeline/v1/pipelinerun_conversion.go @@ -30,7 +30,7 @@ func (pr *PipelineRun) ConvertTo(ctx context.Context, sink apis.Convertible) err if apis.IsInDelete(ctx) { return nil } - return fmt.Errorf("v1beta1 is the highest known version, got: %T", sink) + return fmt.Errorf("v1 is the highest known version, got: %T", sink) } // ConvertFrom implements apis.Convertible @@ -38,5 +38,5 @@ func (pr *PipelineRun) ConvertFrom(ctx context.Context, source apis.Convertible) if apis.IsInDelete(ctx) { return nil } - return fmt.Errorf("v1beta1 is the highest known version, got: %T", source) + return fmt.Errorf("v1 is the highest known version, got: %T", source) }