Updated Natss channel to set subscribable status#1373
Conversation
|
/assign @vaikas-google @nachocano @Harwayne |
|
/hold |
| } | ||
|
|
||
| func (s *SubscriptionsSupervisor) UpdateSubscriptions(channel *eventingv1alpha1.Channel, isFinalizer bool) error { | ||
| // UpdateSubscriptions creates/deletes the natss subscriptions based on channel.Spec.Subscribable.Subscribers |
There was a problem hiding this comment.
it would be nice to describe what it returns as well, now that it returns a map of failed subscriptions?
| } | ||
| natssChannel.Status.SubscribableStatus = r.createSubscribableStatus(natssChannel.Spec.Subscribable, failedSubscriptions) | ||
| if len(failedSubscriptions) > 0 { | ||
| logging.FromContext(ctx).Error("Some natss subscriptions failed to subscribe") |
There was a problem hiding this comment.
maybe also log the len(failedSubscriptions)?
I'm fine if you don't, but the current error message doesn't give enough info to debug...
|
/lgtm |
|
The following is the coverage report on pkg/.
|
|
/lgtm |
|
Let's get this in, so that we can enable the e2e test, and keep on improving it. |
|
/hold cancel /cc @vaikas-google for approval |
|
@nachocano: GitHub didn't allow me to request PR reviews from the following users: for, approval. Note that only knative members and repo collaborators can review this PR, and authors cannot review their own PRs. DetailsIn response to this:
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. |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: akashrv, vaikas-google 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 |
reference #1189
Proposed Changes
Release Note