From dad22df396007104c642f8a886334db51748c1aa Mon Sep 17 00:00:00 2001 From: Jerome Ju Date: Tue, 3 Jan 2023 18:49:11 +0000 Subject: [PATCH] Add taskrun.status.cloudEvents to deprecation.md and mark it as deprecated. --- docs/deprecations.md | 1 + docs/pipeline-api.md | 3 ++- pkg/apis/pipeline/v1beta1/openapi_generated.go | 4 ++-- pkg/apis/pipeline/v1beta1/swagger.json | 4 ++-- pkg/apis/pipeline/v1beta1/taskrun_types.go | 1 + 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/docs/deprecations.md b/docs/deprecations.md index 9a5170bfb64..4486e00a292 100644 --- a/docs/deprecations.md +++ b/docs/deprecations.md @@ -25,3 +25,4 @@ being deprecated. | [Several fields of Task.Step are deprecated](https://github.com/tektoncd/pipeline/issues/4737) | v0.36.0 | Beta | Feb 25, 2023 | | [ClusterTask is deprecated](https://github.com/tektoncd/pipeline/issues/4476) | v0.41.0 | Beta | July 13, 2023 | | [`pipelineRef.bundle` and `taskRef.bundle` are deprecated](https://github.com/tektoncd/pipeline/issues/5514) | v0.41.0 | Alpha | July 13, 2023 | +| [`taskrun.status.cloudEvents` are deprecated](https://github.com/tektoncd/community/blob/main/teps/0074-deprecate-pipelineresources.md)) | v0.44.0 | Alpha | Oct 11, 2023 | diff --git a/docs/pipeline-api.md b/docs/pipeline-api.md index 793f0653751..63d7c78ee88 100644 --- a/docs/pipeline-api.md +++ b/docs/pipeline-api.md @@ -13403,7 +13403,8 @@ Kubernetes meta/v1.Time (Optional) -

CloudEvents describe the state of each cloud event requested via a +

Deprecated. +CloudEvents describe the state of each cloud event requested via a CloudEventResource.

diff --git a/pkg/apis/pipeline/v1beta1/openapi_generated.go b/pkg/apis/pipeline/v1beta1/openapi_generated.go index b0af076e131..c5377358cce 100644 --- a/pkg/apis/pipeline/v1beta1/openapi_generated.go +++ b/pkg/apis/pipeline/v1beta1/openapi_generated.go @@ -5003,7 +5003,7 @@ func schema_pkg_apis_pipeline_v1beta1_TaskRunStatus(ref common.ReferenceCallback }, }, SchemaProps: spec.SchemaProps{ - Description: "CloudEvents describe the state of each cloud event requested via a CloudEventResource.", + Description: "Deprecated. CloudEvents describe the state of each cloud event requested via a CloudEventResource.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -5165,7 +5165,7 @@ func schema_pkg_apis_pipeline_v1beta1_TaskRunStatusFields(ref common.ReferenceCa }, }, SchemaProps: spec.SchemaProps{ - Description: "CloudEvents describe the state of each cloud event requested via a CloudEventResource.", + Description: "Deprecated. CloudEvents describe the state of each cloud event requested via a CloudEventResource.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ diff --git a/pkg/apis/pipeline/v1beta1/swagger.json b/pkg/apis/pipeline/v1beta1/swagger.json index ca7274cdee1..66d4524de03 100644 --- a/pkg/apis/pipeline/v1beta1/swagger.json +++ b/pkg/apis/pipeline/v1beta1/swagger.json @@ -2877,7 +2877,7 @@ } }, "cloudEvents": { - "description": "CloudEvents describe the state of each cloud event requested via a CloudEventResource.", + "description": "Deprecated. CloudEvents describe the state of each cloud event requested via a CloudEventResource.", "type": "array", "items": { "default": {}, @@ -2976,7 +2976,7 @@ ], "properties": { "cloudEvents": { - "description": "CloudEvents describe the state of each cloud event requested via a CloudEventResource.", + "description": "Deprecated. CloudEvents describe the state of each cloud event requested via a CloudEventResource.", "type": "array", "items": { "default": {}, diff --git a/pkg/apis/pipeline/v1beta1/taskrun_types.go b/pkg/apis/pipeline/v1beta1/taskrun_types.go index 8a6f38d98fb..3f766cf9740 100644 --- a/pkg/apis/pipeline/v1beta1/taskrun_types.go +++ b/pkg/apis/pipeline/v1beta1/taskrun_types.go @@ -251,6 +251,7 @@ type TaskRunStatusFields struct { // +listType=atomic Steps []StepState `json:"steps,omitempty"` + // Deprecated. // CloudEvents describe the state of each cloud event requested via a // CloudEventResource. // +optional