-
Notifications
You must be signed in to change notification settings - Fork 423
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
Add support for ClusterTriggerBinding #358
Conversation
The following is the coverage report on pkg/.
|
The following is the coverage report on pkg/.
|
The following is the coverage report on pkg/.
|
The following is the coverage report on pkg/.
|
The following is the coverage report on pkg/.
|
The following is the coverage report on pkg/.
|
The following is the coverage report on pkg/.
|
The following is the coverage report on pkg/.
|
The following is the coverage report on pkg/.
|
The following is the coverage report on pkg/.
|
/test pull-tekton-triggers-integration-tests |
The following is the coverage report on pkg/.
|
The following is the coverage report on pkg/.
|
The following is the coverage report on pkg/.
|
The following is the coverage report on pkg/.
|
@@ -155,6 +153,19 @@ func TestEventListenerCreate(t *testing.T) { | |||
t.Fatalf("Error creating TriggerBinding: %s", err) | |||
} | |||
|
|||
// ClusterTriggerBinding | |||
ctb, err := c.TriggersClient.TektonV1alpha1().ClusterTriggerBindings().Create( |
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.
Can we split this off into a separate test instead of adding onto existing test here since it is already pretty large?
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.
So, this is an e2e test, which was using a trigger binding. I have split that into one trigger binding and 1 cluster trigger binding and updated the test. Does it make sense to have two tests for that?
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.
I think its ok for now...but I'm planning on adding smaller/more focussed e2e tests soon!
The following is the coverage report on pkg/.
|
/test pull-tekton-triggers-integration-tests |
The following is the coverage report on pkg/.
|
/lgtm |
The following is the coverage report on pkg/.
|
The following is the coverage report on pkg/.
|
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.
Just needs a rebase! Otherwise looks good
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dibyom, khrm 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 |
This will add the support for ClusterTriggerBinding in triggers which is like TrigerBinding but cluster-scoped This is designed to encourage reusability across cluster You need to add Kind field along with TriggerBinding name to use ClusterTriggerBinding, by default it is TriggerBinding Add docs, examples, and tests for clustertriggerbinding Little refactoring in code. Add builders for multipleTriggerBindings in a trigger Refactored e2e test to use both triggerBinding and clusterTriggerBinding Closes tektoncd#322
The following is the coverage report on pkg/.
|
/lgtm |
Changes
This will add the support for ClusterTriggerBinding
in triggers which is like TrigerBinding but
cluster-scoped
This is designed to encourage reusability across cluster
You need to add Kind field along with TriggerBinding name
to use ClusterTriggerBinding, by default it is
TriggerBinding
Add docs, examples, and tests for clustertriggerbinding
Little refactoring in code.
Add builders for multipleTriggerBindings in a trigger
Refactored e2e test to use both triggerBinding and
clusterTriggerBinding
Closes #322
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
See the contribution guide for more details.
Release Notes