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

Remove tekton.dev/task label from taskrun of clustertasks #3764

Merged
merged 1 commit into from
Mar 9, 2021

Conversation

piyush-garg
Copy link
Contributor

@piyush-garg piyush-garg commented Feb 15, 2021

This will remove the label tekton.dev/task label from taskruns which
are referencing a clusterTask. This was marked deprecated in v0.12.0

Fix #2533

/kind cleanup

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.

Double check this list of stuff that's easy to miss:

Reviewer Notes

If API changes are included, additive changes must be approved by at least two OWNERS and backwards incompatible changes must be approved by more than 50% of the OWNERS, and they must first be added in a backwards compatible way.

Release Notes

For pull requests with a release note:

Remove tekton.dev/task label from taskrun of clustertasks

@tekton-robot tekton-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. labels Feb 15, 2021
@tekton-robot tekton-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Feb 15, 2021
@piyush-garg
Copy link
Contributor Author

/hold

cc @vdemeester @bobcatfish @sbwsg

This is regarding the removal of deprecation thing. Let me know if any other changes are required for this

@tekton-robot tekton-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 15, 2021
Copy link
Member

@AlanGreene AlanGreene left a comment

Choose a reason for hiding this comment

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

Can you update the PR title, release note, and commit message to indicate the correct label?

It's actually the tekton.dev/task label that's being removed.

This will remove the label tekton.dev/task label from taskruns which
are referencing a clusterTask. This was marked deprecated in v0.12.0

Fix tektoncd#2533
@piyush-garg piyush-garg changed the title Remove tekton.dev/clusterTask label from taskrun of clustertasks Remove tekton.dev/task label from taskrun of clustertasks Feb 16, 2021
@piyush-garg
Copy link
Contributor Author

Can you update the PR title, release note, and commit message to indicate the correct label?

It's actually the tekton.dev/task label that's being removed.

@AlanGreene Thanks for this. Mistakes while typing. Fixed these now.

@ghost
Copy link

ghost commented Feb 22, 2021

This looks good to me. Suggest also updating docs/deprecations.md to remove mention of tekton.dev/task label on ClusterTasks.

@vdemeester vdemeester added this to the Pipelines 0.22 milestone Feb 24, 2021
@ghost
Copy link

ghost commented Mar 9, 2021

I'll remove the deprecation in a follow-up PR.

/approve

@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sbwsg

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 Mar 9, 2021
Copy link
Member

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

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

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Mar 9, 2021
@pritidesai
Copy link
Member

thank you @sbwsg @vdemeester 🙏
/hold cancel

@tekton-robot tekton-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 9, 2021
@tekton-robot tekton-robot merged commit ee1c2d6 into tektoncd:master Mar 9, 2021
vinamra28 added a commit to vinamra28/cli that referenced this pull request Mar 22, 2021
`tkn clustertask start` command with `--last` flag was checking for the
label `tekton.dev/task=name` in the created taskruns since any taskrun
created from clustertask had the labels `tekton.dev/clusterTask=name`
and `tekton.dev/task=name`.

Since pipelines 0.22 release the label `tekton.dev/task=name` has been
removed from the taskruns which were created from clustertasks.
See: tektoncd/pipeline#3764

Fixing this in pkg/task/tasklastrun.go and adding corresponding tests.

Signed-off-by: vinamra28 <vinjain@redhat.com>
vinamra28 added a commit to vinamra28/cli that referenced this pull request Mar 22, 2021
`tkn clustertask start` command with `--last` flag was checking for the
label `tekton.dev/task=name` in the created taskruns since any taskrun
created from clustertask had the labels `tekton.dev/clusterTask=name`
and `tekton.dev/task=name`.

Since pipelines 0.22 release the label `tekton.dev/task=name` has been
removed from the taskruns which were created from clustertasks.
See: tektoncd/pipeline#3764

Fixing this in pkg/task/tasklastrun.go and adding corresponding tests.

Signed-off-by: vinamra28 <vinjain@redhat.com>
vinamra28 added a commit to vinamra28/cli that referenced this pull request Mar 22, 2021
`tkn clustertask start` command with `--last` flag was checking for the
label `tekton.dev/task=name` in the created taskruns since any taskrun
created from clustertask had the labels `tekton.dev/clusterTask=name`
and `tekton.dev/task=name`.

Since pipelines 0.22 release the label `tekton.dev/task=name` has been
removed from the taskruns which were created from clustertasks.
See: tektoncd/pipeline#3764

Fixing this in pkg/task/tasklastrun.go and adding corresponding tests.

Signed-off-by: vinamra28 <vinjain@redhat.com>
tekton-robot pushed a commit to tektoncd/cli that referenced this pull request Mar 23, 2021
`tkn clustertask start` command with `--last` flag was checking for the
label `tekton.dev/task=name` in the created taskruns since any taskrun
created from clustertask had the labels `tekton.dev/clusterTask=name`
and `tekton.dev/task=name`.

Since pipelines 0.22 release the label `tekton.dev/task=name` has been
removed from the taskruns which were created from clustertasks.
See: tektoncd/pipeline#3764

Fixing this in pkg/task/tasklastrun.go and adding corresponding tests.

Signed-off-by: vinamra28 <vinjain@redhat.com>
piyush-garg pushed a commit to tektoncd/cli that referenced this pull request Mar 31, 2021
`tkn clustertask start` command with `--last` flag was checking for the
label `tekton.dev/task=name` in the created taskruns since any taskrun
created from clustertask had the labels `tekton.dev/clusterTask=name`
and `tekton.dev/task=name`.

Since pipelines 0.22 release the label `tekton.dev/task=name` has been
removed from the taskruns which were created from clustertasks.
See: tektoncd/pipeline#3764

Fixing this in pkg/task/tasklastrun.go and adding corresponding tests.

Signed-off-by: vinamra28 <vinjain@redhat.com>
piyush-garg pushed a commit to tektoncd/cli that referenced this pull request Mar 31, 2021
`tkn clustertask start` command with `--last` flag was checking for the
label `tekton.dev/task=name` in the created taskruns since any taskrun
created from clustertask had the labels `tekton.dev/clusterTask=name`
and `tekton.dev/task=name`.

Since pipelines 0.22 release the label `tekton.dev/task=name` has been
removed from the taskruns which were created from clustertasks.
See: tektoncd/pipeline#3764

Fixing this in pkg/task/tasklastrun.go and adding corresponding tests.

Signed-off-by: vinamra28 <vinjain@redhat.com>
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. 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.

Remove tekton.dev/task label from ClusterTask TaskRuns
5 participants