From 666a018636c349f950d44a2276ffcd0e13bc68fb Mon Sep 17 00:00:00 2001 From: Jerop Date: Fri, 7 May 2021 14:41:07 -0400 Subject: [PATCH] Remove deprecated PascalCase fields in WhenExpressions This change removes the deprecated PascalCase fields in `WhenExpressions` The fields in `WhenExpressions` were missing json annotations in https://github.com/tektoncd/pipeline/pull/3135 so they were PascalCase - released in v0.16 The json annotations were added and supported both PascalCase and lowercase fields for backwards compatibility in https://github.com/tektoncd/pipeline/pull/3291 and https://github.com/tektoncd/pipeline/pull/3389 - released in v0.17 The PascalCase fields were deprecated in v0.17, with an earliest date of removal of Jan 07 2021 - https://github.com/tektoncd/pipeline/blob/v0.23.0/docs/deprecations.md --- docs/deprecations.md | 1 - .../pipeline/v1beta1/openapi_generated.go | 29 ---------- pkg/apis/pipeline/v1beta1/swagger.json | 16 ----- pkg/apis/pipeline/v1beta1/when_types.go | 58 +++---------------- pkg/apis/pipeline/v1beta1/when_validation.go | 23 ++------ .../pipeline/v1beta1/when_validation_test.go | 24 -------- .../pipeline/v1beta1/zz_generated.deepcopy.go | 5 -- 7 files changed, 13 insertions(+), 143 deletions(-) diff --git a/docs/deprecations.md b/docs/deprecations.md index b33fb56c680..51ff5c902d4 100644 --- a/docs/deprecations.md +++ b/docs/deprecations.md @@ -23,6 +23,5 @@ being deprecated. | [The `TaskRun.Status.ResourceResults.ResourceRef` field is deprecated and will be removed.](https://github.com/tektoncd/pipeline/issues/2694) | [v0.14.0](https://github.com/tektoncd/pipeline/releases/tag/v0.14.0) | Beta | April 30 2021 | | [The `PipelineRun.Spec.ServiceAccountNames` field is deprecated and will be removed.](https://github.com/tektoncd/pipeline/issues/2614) | [v0.15.0](https://github.com/tektoncd/pipeline/releases/tag/v0.15.0) | Beta | May 15 2021 | | [`Conditions` CRD is deprecated and will be removed. Use `WhenExpressions` instead.](https://github.com/tektoncd/community/blob/main/teps/0007-conditions-beta.md) | [v0.16.0](https://github.com/tektoncd/pipeline/releases/tag/v0.16.0) | Alpha | Nov 02 2020 | -| [The PascalCase fields in WhenExpressions is deprecated and will be removed](https://github.com/tektoncd/pipeline/pull/3389) | [v0.17.2](https://github.com/tektoncd/pipeline/releases/tag/v0.17.2) | Alpha | Jan 07 2021 | | [The `disable-home-env-overwrite` flag will be removed](https://github.com/tektoncd/pipeline/issues/2013) | [v0.24.0](https://github.com/tektoncd/pipeline/releases/tag/v0.24.0) | Beta | February 10 2022 | | [The `disable-working-dir-overwrite` flag will be removed](https://github.com/tektoncd/pipeline/issues/1836) | [v0.24.0](https://github.com/tektoncd/pipeline/releases/tag/v0.24.0) | Beta | February 10 2022 | diff --git a/pkg/apis/pipeline/v1beta1/openapi_generated.go b/pkg/apis/pipeline/v1beta1/openapi_generated.go index 134d8e3b6c2..8b47e4b412a 100644 --- a/pkg/apis/pipeline/v1beta1/openapi_generated.go +++ b/pkg/apis/pipeline/v1beta1/openapi_generated.go @@ -4178,13 +4178,6 @@ func schema_pkg_apis_pipeline_v1beta1_WhenExpression(ref common.ReferenceCallbac Format: "", }, }, - "Input": { - SchemaProps: spec.SchemaProps{ - Description: "DeprecatedInput for backwards compatibility with