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

Cleanup resources of ClusterTask #5977

Merged
merged 1 commit into from
Jan 17, 2023

Conversation

JeromeJu
Copy link
Member

@JeromeJu JeromeJu commented Jan 9, 2023

Changes

This commit cleans up the unused functions for ClusterTask. It aims to keep the hygiene of the codebase and gets the repo ready for swapping the storage version to v1.

  • Remove the GetClusterTask type which is not referenced anywhere in the codebase, this was first introduced in Add ClusterTask new CRD #312 and not used after the removal of v1alpha1 directory from ./pkg/reconciler/v1alpha1

/kind cleanup
part of #5979

Submitter Checklist

As the author of this PR, please check off the items in this checklist:

  • [n/a] Has Docs included if any changes are user facing
  • Has Tests included if any functionality added or changed
  • Follows the commit message standard
  • Meets the Tekton contributor standards (including
    functionality, content, code)
  • Has a kind label. You can add one by adding a comment on this PR that contains /kind <type>. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tep
  • Release notes block below has been updated with any user facing changes (API changes, bug fixes, changes requiring upgrade notices or deprecation warnings)
  • Release notes contains the string "action required" if the change requires additional action from users switching to the new release

Release Notes

remove `GetClusterTask` func

This commit cleans up the unused functions for ClusterTask. It aims to keep the hygiene of the codebase
and gets the repo ready for swapping the storage version to v1.
@tekton-robot tekton-robot added release-note-none Denotes a PR that doesnt merit a release note. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. labels Jan 9, 2023
@tekton-robot tekton-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jan 9, 2023
@JeromeJu JeromeJu marked this pull request as draft January 9, 2023 22:25
@tekton-robot tekton-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. labels Jan 9, 2023
@JeromeJu
Copy link
Member Author

JeromeJu commented Jan 9, 2023

This is an unreferenced type so it has not been regarded as dead code even though it was not used anywhere.

@JeromeJu JeromeJu marked this pull request as ready for review January 10, 2023 15:59
@tekton-robot tekton-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jan 10, 2023
@JeromeJu
Copy link
Member Author

JeromeJu commented Jan 10, 2023

/retest

Copy link
Member

@XinruZhang XinruZhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the change @JeromeJu!

@Yongxuanzhang
Copy link
Member

👍 I think release note is needed?

@JeromeJu
Copy link
Member Author

👍 I think release note is needed?

I think we might not as this is not part of the API but the reconciler?

@Yongxuanzhang
Copy link
Member

👍 I think release note is needed?

I think we might not as this is not part of the API but the reconciler?

It could be a using facing change, since it is public type?
https://pkg.go.dev/github.com/tektoncd/[email protected]/pkg/reconciler/taskrun/resources#GetClusterTask

@JeromeJu
Copy link
Member Author

JeromeJu commented Jan 10, 2023

👍 I think release note is needed?

I think we might not as this is not part of the API but the reconciler?

It could be a using facing change, since it is public type? https://pkg.go.dev/github.com/tektoncd/[email protected]/pkg/reconciler/taskrun/resources#GetClusterTask

Makes sense! Updated, thanks for pointing this out.

@tekton-robot tekton-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed release-note-none Denotes a PR that doesnt merit a release note. labels Jan 10, 2023
@lbernick
Copy link
Member

/approve

nit on the release note: the function is being removed, not deprecated ("deprecated" would make me think it's still usable)

@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lbernick, XinruZhang

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 Jan 12, 2023
@Yongxuanzhang
Copy link
Member

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Jan 12, 2023
@jerop jerop closed this Jan 17, 2023
@jerop jerop reopened this Jan 17, 2023
@tekton-robot tekton-robot merged commit 6372082 into tektoncd:main Jan 17, 2023
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. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants