Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Add Support for AzureServiceBusSource#1418

Merged
FranBarrera merged 3 commits intotriggermesh:mainfrom
FranBarrera:azure-servicebus-source
May 16, 2023
Merged

Add Support for AzureServiceBusSource#1418
FranBarrera merged 3 commits intotriggermesh:mainfrom
FranBarrera:azure-servicebus-source

Conversation

@FranBarrera
Copy link
Contributor

This PR add support for Azure ServiceBus Source, allowing to use in the same source topics and queues

@FranBarrera FranBarrera self-assigned this May 10, 2023
@FranBarrera FranBarrera requested a review from a team May 10, 2023 15:47
@FranBarrera FranBarrera marked this pull request as ready for review May 15, 2023 09:16
Copy link
Member

@odacremolbap odacremolbap left a comment

Choose a reason for hiding this comment

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

Almost there,

I left a question regarding the queue case and the status condition set.

limitations under the License.
*/

package servicebus
Copy link
Member

Choose a reason for hiding this comment

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

I understand this will remain and the other copies will be removed.
Does not feel great to have copies around, let's remember to remove the one at servicebustopics

Alternatively we could remove it now and redirect the previous code to this client, but that is not needed now on my side.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, that's the plan, as soon as we delete the old azure servicebus topic and queue I'll remove this with the rest of the old code.

Comment on lines +62 to +64
// In the case when TopicID is present, it is necessary to ensure the subscription.
// when dealing with QueueID, there's no need.
if o.Spec.TopicID != nil {
Copy link
Member

Choose a reason for hiding this comment

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

The queue case will leave the status set to Unknown ...

If that is the case we should either try to make the status conditions dynamic (not sure if that is something that we have done at any other component), or set the subscribed condition to true with a reason that says NOTNEEDED.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It should be fixed now

@FranBarrera FranBarrera requested a review from odacremolbap May 16, 2023 09:17
@FranBarrera FranBarrera merged commit 455079a into triggermesh:main May 16, 2023
@FranBarrera FranBarrera deleted the azure-servicebus-source branch May 16, 2023 09:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants