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 the Trigger field from TaskRun/PipelineRun. #857

Merged
merged 1 commit into from
May 14, 2019

Conversation

dlorenc
Copy link
Contributor

@dlorenc dlorenc commented May 13, 2019

Changes

This field is not currently used, and it's usage should be replaced
with labels/annotations. This commit removes it now, before anyone
takes a dependency on it.

At a later time we can decide on the correct label/annotation usage
for this information and start writing that data.

Ref #833

Submitter Checklist

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

Release Notes

The trigger field has been removed from TaskRun.
Its usage will be replaced with labels and annotations at a later time.

@googlebot googlebot added the cla: yes Trying to make the CLA bot happy with ppl from different companies work on one commit label May 13, 2019
@tekton-robot tekton-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label May 13, 2019
@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dlorenc

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 May 13, 2019
@vdemeester
Copy link
Member

/retest

@dlorenc dlorenc force-pushed the notrigger branch 2 times, most recently from 1c0d126 to 56f7fc6 Compare May 13, 2019 17:07
@nader-ziada
Copy link
Member

trigger field should also be removed from the yaml examples

@tekton-robot
Copy link
Collaborator

tekton-robot commented May 13, 2019

@dlorenc: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-tekton-catalog-unit-tests 43b68c1 link /test pull-tekton-catalog-unit-tests
pull-tekton-catalog-build-tests 43b68c1 link /test pull-tekton-catalog-build-tests
pull-tekton-catalog-integration-tests 43b68c1 link /test pull-tekton-catalog-integration-tests

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@bobcatfish
Copy link
Collaborator

This field is not currently used,

Hmm... it's not completely unused in that the PipelineRun controller sets the field on TaskRuns, and I think @iancoffey was saying that the event implementation sets it.

I don't mind removing it, but it seems odd to remove it now before we decide how to replace it.

Maybe bring it up at the WG meeting this week @dlorenc ?

This field is not currently used, and it's usage should be replaced
with labels/annotations. This commit removes it now, before anyone
takes a dependency on it.

At a later time we can decide on the correct label/annotation usage
for this information and start writing that data.
@dlorenc dlorenc changed the title Remove the Trigger field from TaskRun. Remove the Trigger field from TaskRun/PipelineRun. May 13, 2019
@dlorenc
Copy link
Contributor Author

dlorenc commented May 13, 2019

trigger field should also be removed from the yaml examples

Fixed!

@dlorenc
Copy link
Contributor Author

dlorenc commented May 13, 2019

I don't mind removing it, but it seems odd to remove it now before we decide how to replace it.

If we know we want to remove it, I'd rather remove it ASAP before other things start using it. I added it to the agenda for tomorrow.

@iancoffey
Copy link
Member

iancoffey commented May 13, 2019

Indeed, I had thought to implement this for the eventbinding things, but am fine just using labels instead 👍

@abayer
Copy link
Contributor

abayer commented May 13, 2019

/hold
/lgtm

LGTMing but also putting on hold until after WG tomorrow. =)

@tekton-robot tekton-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. lgtm Indicates that a PR is ready to be merged. labels May 13, 2019
@abayer
Copy link
Contributor

abayer commented May 13, 2019

/hold

@abayer
Copy link
Contributor

abayer commented May 13, 2019

ah, it added the label but I didn't see it.

@dlorenc
Copy link
Contributor Author

dlorenc commented May 13, 2019

Hmm... it's not completely unused in that the PipelineRun controller sets the field on TaskRuns, and I think @iancoffey was saying that the event implementation sets it.

I would also argue that merely writing a field doesn't count as using it :)

@bobcatfish
Copy link
Collaborator

I would also argue that merely writing a field doesn't count as using it :)

Yeah that's a good point - I guess it only matters if someone is consuming it!

@afrittoli
Copy link
Member

afrittoli commented May 14, 2019

I think an annotation would be more fitting, the spec should contain information for the controller to reconciliate the resource, while "trigger" is not used/needed by the controller at all, so I'm +1 on removing it as a field.

@vdemeester
Copy link
Member

Discussed it (real quick) during the working group, as nobody raise any flag for keeping it, let's get rid of the field 👼
/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 May 14, 2019
@tekton-robot tekton-robot merged commit 81f178e into tektoncd:master May 14, 2019
AlanGreene added a commit to AlanGreene/dashboard that referenced this pull request Aug 15, 2019
The trigger field was removed in tektoncd/pipeline#857 and should
have been removed from the dashboard code in the intervening time.
AlanGreene added a commit to AlanGreene/dashboard that referenced this pull request Aug 15, 2019
The trigger field was removed in tektoncd/pipeline#857 and should
have been removed from the dashboard code in the intervening time.
pradeepitm12 pushed a commit to openshift/tektoncd-pipeline that referenced this pull request Jan 27, 2021
With CEL interceptor writing to the `extensions` field, it is impossible to
chain added fields from a CEL interceptor to a webhook interceptor today. This
is because we do not pass the extensions field to the webhook interceptor yet.

This commit attempts to fix this by merging any extensions to the body before
sending it over to the Webhook interceptor. This is temporary until we fully
move webhook interceptors to the new pluggable interface. One implication of
this change is that the body may now contain an `extensions` field separate
from the top level extensions field if one uses the Webhook interceptor.

In addition, the CEL environment also did not have access to extensions which I
fixed.

Fixes tektoncd#857

Signed-off-by: Dibyo Mukherjee <dibyo@google.com>

Add extensions support to CEL
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. cla: yes Trying to make the CLA bot happy with ppl from different companies work on one commit lgtm Indicates that a PR is ready to be merged. 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.

None yet

9 participants