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

Update NATS ClusterChannelProvisioner to NATS CRD #5517

Merged
merged 40 commits into from
Sep 17, 2019

Conversation

anishj0shi
Copy link
Member

@anishj0shi anishj0shi commented Sep 2, 2019

Description

Changes proposed in this pull request:

  • Update Kubernetes dependencies to 1.12.9
  • Update knative deps to v0.8
  • Change knavtive channels.eventing refs to channel.messaging.
  • knative Channel and subscription Creation is generic based on knative config-map
  • change Get knative channel strategy from labels
  • Fix Unit Tests

Related issue(s)

@anishj0shi anishj0shi self-assigned this Sep 2, 2019
@anishj0shi anishj0shi added area/eventing Issues or PRs related to eventing WIP labels Sep 2, 2019
@anishj0shi anishj0shi marked this pull request as ready for review September 12, 2019 09:08
Copy link
Contributor

@sayanh sayanh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@anishj0shi On another note, I just found this

channelName := eventBusUtil.GetChannelName(&publishRequest.SourceID, &publishRequest.EventType,
&publishRequest.EventTypeVersion)

the publish service gets the channel name using the same algorithm instead of hitting the apiserver. Almost overlooked this. Querying with labels won't be enough.

Edit: Not true, it indeed hits the api server and gets the channel URL.

payload *[]byte) (*api.Error, string, string) {

// knative Channel reference should not be nil
if channel == nil {
Copy link
Contributor

@sayanh sayanh Sep 16, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

channel will never be nil as in GetChannelByLabels(), error is thrown if no channels are found

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Initially, it was designed to be a public method. Now I've removed this check as the method is now private

Copy link
Contributor

@montaro montaro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Thanks for the good work!

Copy link
Contributor

@sayanh sayanh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

evclientset "github.com/knative/eventing/pkg/client/clientset/versioned"
eventingv1alpha1 "github.com/knative/eventing/pkg/client/clientset/versioned/typed/eventing/v1alpha1"
messagingv1alpha1 "github.com/knative/eventing/pkg/client/clientset/versioned/typed/messaging/v1alpha1"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we rename this? it is kinda confusing if you compare it to line 15

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@anishj0shi anishj0shi merged commit c7ed676 into kyma-project:master Sep 17, 2019
anishj0shi pushed a commit that referenced this pull request Sep 23, 2019
- Upgrade knative eventing chart to 0.8.0

- Pre and Post Upgrade hooks

- Working NATS Provisioner

- remove old NATS deployment

- Bump latest image from #5517
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/eventing Issues or PRs related to eventing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants