-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Use trigger
instead of triggerRef
#366
Use trigger
instead of triggerRef
#366
Conversation
We use the syntax `somethingRef` in several fields on our specs because we want to be able to use ducktyping down the line to switch out other types (see tektoncd#238). However `triggerRef` is a bit weird because: - If the type is `manual`, there is no actual CRD to reference - We don't know what other sorts of types we might need (e.g. when created via events) - It was inconsistent b/w TaskRun and PipelineRun (TaskRun had an extra level of indirection) This commit applies @sebgoa's suggestion to simplify this to just `trigger`. This was part of the discussion in tektoncd#320 about simplifying the interfaace.
This is consistent with `TaskRun` which also has a `Trigger` field.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bobcatfish, vdemeester 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 |
Looks like the integration tests actually failed for this:
|
@bobcatfish ahhhh 😅 that's why some PR failed afterwards 🙃 |
😅 |
In tektoncd#366 I tried to rename the trigger field in a `PipelineRun.Spec` from `PipelineTrigger` to just `Trigger` to be in line with the similar `Trigger` field in `TaskRun.Spec` BUT I MISSED SOME OF THEM 😭😭😭 Fixes tektoncd#366
The crashloop is due to 2 reasons: 1. We deprecated and removed the `params` field from the EventListener. So, when the reconciler tries to unmarshal an old EventListener, it fails since it cannot parse the deleted `params` field. 2. The new event listener sink image expects `/etc/config-logging` to be mounted. However the reconciler code does not add the `volumeMount` for any existing sink deployments. So, the new pods go into a crashloop To fix this, this commit does the following: 1. Add back the `params` field. Also, update the mutating webhook to delete any set `params` field in existing eventlisteners. 2. Add volumeMount for existing deployments if not present. - Co-Authored-by: Brandon Walker Fixes tektoncd#366 Signed-off-by: Dibyo Mukherjee <dibyo@google.com>
We use the syntax
somethingRef
in several fields on our specs becausewe want to be able to use ducktyping down the line to switch out other
types (see #238).
However
triggerRef
is a bit weird because:manual
, there is no actual CRD to referencecreated via events)
level of indirection)
This commit applies @sebgoa's suggestion to simplify this to just
trigger
.This was part of the discussion in #320 about simplifying the
interface.