Enable eventing when a Trigger is created for first time#2034
Conversation
|
ready to review |
|
I generally like the idea, doing this, since that makes it much easier to use However, I feel that non-default broker could be simpler too: #1837 |
| current.Labels = map[string]string{} | ||
| } | ||
| current.Labels["knative-eventing-injection"] = "enabled" | ||
| _, e := r.KubeClientSet.CoreV1().Namespaces().Update(current) |
There was a problem hiding this comment.
is every user allowed doing this?
|
/hold until this one lands #2027 |
I think #1837 will involve some more work as we need to change the broker reconciler. IMO we can start with this simpler approach of just doing label injection, and then later on add that. Do you agree @matzew? |
yes, @nachocano |
|
/lgtm |
|
/hold Need to think more about the possible race condition mentioned in #2012 (comment) |
c74615f to
b787466
Compare
|
/retest |
|
ping |
|
/hold cancel
#2027 lands
annotation added for race condition |
grantr
left a comment
There was a problem hiding this comment.
This is close! I have a few suggestions and nits.
|
done |
|
@grac3gao: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. |
grantr
left a comment
There was a problem hiding this comment.
/lgtm
Looks like there's a conflict. I'll lgtm again when that's fixed.
# Conflicts: # pkg/apis/eventing/v1alpha1/trigger_validation_test.go
|
The following is the coverage report on the affected files.
|
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: grac3gao, grantr The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Fixes #2012
Proposed Changes
knative-eventing-injection: "enabled"in triggerknative-eventing-injection: "enabled"Release Note