Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing deprecated fields #1040

Merged

Conversation

jmcshane
Copy link
Contributor

Changes

Closes #904

This PR removes the deprecated ServiceType and PodTemplate fields from the EventListener Spec

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

  • Includes tests (if functionality changed/added)
  • Includes docs (if user facing)
  • Commit messages follow commit message best practices
  • Release notes block has been filled in or deleted (only if no user facing changes)

See the contribution guide for more details.

Release Notes

Removes deprecated API fields from EventListener spec

@tekton-robot tekton-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Apr 10, 2021
@tekton-robot
Copy link

The following is the coverage report on the affected files.
Say /test pull-tekton-triggers-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/triggers/v1alpha1/event_listener_defaults.go 95.0% 91.3% -3.7
pkg/apis/triggers/v1alpha1/event_listener_validation.go 97.7% 97.0% -0.8
pkg/reconciler/v1alpha1/eventlistener/eventlistener.go 79.5% 78.4% -1.1
test/builder/eventlistener.go 81.5% 71.6% -9.9

@jmcshane jmcshane force-pushed the cleanup/remove-deprecated-fields branch from e2463ef to 185c6e9 Compare April 10, 2021 00:23
@tekton-robot
Copy link

The following is the coverage report on the affected files.
Say /test pull-tekton-triggers-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/triggers/v1alpha1/event_listener_defaults.go 95.0% 91.3% -3.7
pkg/apis/triggers/v1alpha1/event_listener_validation.go 97.7% 97.0% -0.8
pkg/reconciler/v1alpha1/eventlistener/eventlistener.go 79.5% 78.4% -1.1
test/builder/eventlistener.go 81.5% 78.8% -2.8

@jmcshane jmcshane force-pushed the cleanup/remove-deprecated-fields branch from 185c6e9 to 4d7a3f0 Compare April 10, 2021 00:25
@tekton-robot
Copy link

The following is the coverage report on the affected files.
Say /test pull-tekton-triggers-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/triggers/v1alpha1/event_listener_defaults.go 95.0% 91.3% -3.7
pkg/apis/triggers/v1alpha1/event_listener_validation.go 97.7% 97.0% -0.8
pkg/reconciler/v1alpha1/eventlistener/eventlistener.go 79.5% 78.4% -1.1
test/builder/eventlistener.go 81.5% 78.8% -2.8

@jmcshane jmcshane force-pushed the cleanup/remove-deprecated-fields branch from 4d7a3f0 to 1f2a889 Compare April 10, 2021 00:31
@tekton-robot
Copy link

The following is the coverage report on the affected files.
Say /test pull-tekton-triggers-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/triggers/v1alpha1/event_listener_defaults.go 95.0% 91.3% -3.7
test/builder/eventlistener.go 81.5% 78.8% -2.8

@jmcshane jmcshane force-pushed the cleanup/remove-deprecated-fields branch from 1f2a889 to ae0a0b9 Compare April 10, 2021 00:39
@tekton-robot
Copy link

The following is the coverage report on the affected files.
Say /test pull-tekton-triggers-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/triggers/v1alpha1/event_listener_defaults.go 95.0% 91.3% -3.7
test/builder/eventlistener.go 81.5% 91.5% 9.9

@jmcshane
Copy link
Contributor Author

The reduction in test coverage in the defaults package is due to the removal of code that was covered at 100% (higher than the rest of the file). Any other test changes made in this PR would be unrelated to the removal of the deprecated fields.

@jmcshane
Copy link
Contributor Author

The only thing I see left here is if we want to call out the kubernetesResource.serviceType field explicitly as a way to expose event listener in the exposing-eventlisteners.md document. This document did not have the deprecated ServiceType field called out, but it was called out in a couple of the examples. Besides that, this was a straightforward removal of the two removed fields.

@jmcshane
Copy link
Contributor Author

/test pull-tekton-triggers-build-tests

@jmcshane jmcshane force-pushed the cleanup/remove-deprecated-fields branch from ae0a0b9 to 67ab0f2 Compare April 10, 2021 00:57
@tekton-robot
Copy link

The following is the coverage report on the affected files.
Say /test pull-tekton-triggers-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/triggers/v1alpha1/event_listener_defaults.go 95.0% 91.3% -3.7
test/builder/eventlistener.go 81.5% 91.5% 9.9

@jmcshane
Copy link
Contributor Author

/assign @iancoffey

@dibyom
Copy link
Member

dibyom commented Apr 12, 2021

This LGTM. We should decide which release we are intending to remove these fields.

@iancoffey
Copy link
Member

iancoffey commented Apr 13, 2021

/lgtm , pending release decision

@tekton-robot tekton-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 22, 2021
@dibyom
Copy link
Member

dibyom commented Apr 22, 2021

I think this can make it to the v0.14 release.

Just needs a rebase and then good to go.
/approve

@tekton-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dibyom

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 22, 2021
@jmcshane jmcshane force-pushed the cleanup/remove-deprecated-fields branch from 67ab0f2 to cc0afaa Compare May 4, 2021 17:19
@tekton-robot tekton-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 4, 2021
@tekton-robot
Copy link

The following is the coverage report on the affected files.
Say /test pull-tekton-triggers-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/triggers/v1alpha1/event_listener_defaults.go 95.0% 91.3% -3.7
test/builder/eventlistener.go 81.5% 91.5% 9.9

@jmcshane jmcshane force-pushed the cleanup/remove-deprecated-fields branch from cc0afaa to 24c4728 Compare May 4, 2021 17:21
@jmcshane
Copy link
Contributor Author

jmcshane commented May 4, 2021

this PR should be good to go now for the release. everything has been cleaned up.

Should we write a document specific to migrating to this version given the removal of these fields?

@tekton-robot
Copy link

The following is the coverage report on the affected files.
Say /test pull-tekton-triggers-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/triggers/v1alpha1/event_listener_defaults.go 95.0% 91.3% -3.7
test/builder/eventlistener.go 81.5% 91.5% 9.9

Closes tektoncd#904

This PR removes the deprecated ServiceType and PodTemplate fields from the EventListener Spec
@jmcshane jmcshane force-pushed the cleanup/remove-deprecated-fields branch from 24c4728 to d9ddf9d Compare May 4, 2021 18:26
@jmcshane
Copy link
Contributor Author

jmcshane commented May 4, 2021

/test pull-tekton-triggers-go-coverage

@tekton-robot
Copy link

The following is the coverage report on the affected files.
Say /test pull-tekton-triggers-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/triggers/v1alpha1/event_listener_defaults.go 95.0% 91.3% -3.7
test/builder/eventlistener.go 81.5% 91.5% 9.9

@jmcshane
Copy link
Contributor Author

jmcshane commented May 4, 2021

/test pull-tekton-triggers-go-coverage

@tekton-robot
Copy link

The following is the coverage report on the affected files.
Say /test pull-tekton-triggers-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/triggers/v1alpha1/event_listener_defaults.go 95.0% 91.3% -3.7
test/builder/eventlistener.go 81.5% 91.5% 9.9

@dibyom
Copy link
Member

dibyom commented May 5, 2021

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label May 5, 2021
@tekton-robot tekton-robot merged commit fb01a33 into tektoncd:main May 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove Deprecate fields PodTemplate and ServiceType
4 participants