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
clean event types #12488
clean event types #12488
Conversation
/hold |
components/eventing-controller/api/v1alpha1/subscription_types.go
Outdated
Show resolved
Hide resolved
components/eventing-controller/reconciler/subscription/nats/reconciler.go
Outdated
Show resolved
Hide resolved
be0da5c
to
0e6e6b8
Compare
✔️ 🥰 Documentation preview ready! 🥰 🔨 Explore the source changes: 7b43176 🔍 Inspect the deploy log: https://app.netlify.com/sites/kyma-project-docs-preview/deploys/61c990458be63a00074307f2 😎 Browse the preview: https://deploy-preview-12488--kyma-project-docs-preview.netlify.app |
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.
Please update Eventing CRDs under kyma/installation/resources/crds/eventing.
/retest |
/test pre-main-kyma-integration-k3d-central-app-connectivity-compass |
/test-required |
/test pre-main-kyma-integration-k3d-compass-dev |
/retest |
2 similar comments
/retest |
/retest |
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.
/lgtm
/retest |
1 similar comment
/retest |
2958fc2
to
7b43176
Compare
7b43176
to
a9ccd35
Compare
/lgtm |
* added backendInfrastructures to subscription types * reworked nats * add unit tests * Add more test * adding beb tests for clean event type implementation * adjustments after review * added backendInfrastructures to subscription types * reworked nats * add unit tests * Add more test * adding beb tests for clean event type implementation * adjustments after review * refactoring after proper testing * adding clean event types to nats * re-added missing code * bump image * copy-crds * fixed missing crds * make beb and nats resolve cleanEventTypes more similar * fixing more failing tests * add mutex to beb_mock * switch from Mutex to RWMutex * adjust to rebase * use RLock und Lock properly * rebase * refactor according to recent code review reset of values * fixing flaky tests * linting issues * Refine tests for BEB * Small refactoring and typo fixes Co-authored-by: Marco Bebway <marco.bebway@sap.com> Co-authored-by: Korbinian Stoemmer <292906+k15r@users.noreply.github.com>
…cherry-picked from main) (#13122) * clean event types (#12488) * added backendInfrastructures to subscription types * reworked nats * add unit tests * Add more test * adding beb tests for clean event type implementation * adjustments after review * added backendInfrastructures to subscription types * reworked nats * add unit tests * Add more test * adding beb tests for clean event type implementation * adjustments after review * refactoring after proper testing * adding clean event types to nats * re-added missing code * bump image * copy-crds * fixed missing crds * make beb and nats resolve cleanEventTypes more similar * fixing more failing tests * add mutex to beb_mock * switch from Mutex to RWMutex * adjust to rebase * use RLock und Lock properly * rebase * refactor according to recent code review reset of values * fixing flaky tests * linting issues * Refine tests for BEB * Small refactoring and typo fixes Co-authored-by: Marco Bebway <marco.bebway@sap.com> Co-authored-by: Korbinian Stoemmer <292906+k15r@users.noreply.github.com> * Avoid the deletion of NATS-subscription at each reconciliation call (#13050) * updated nats handler to check for change in filters, maxInflight and sink * removed maxInflight change and fixed tests * switch to using sync.Map * addressed review comments * addressed review comments 2 * addressed review comments 3 * fixed failing tests Co-authored-by: Friedrich <58187735+FriedrichWilken@users.noreply.github.com> Co-authored-by: Marco Bebway <marco.bebway@sap.com> Co-authored-by: Korbinian Stoemmer <292906+k15r@users.noreply.github.com>
This pr addresses this issue:
When creating backend infrastructures we take the
filters
->eventType
->value
, clean it up and name the backend infrastructure by this name, while leaving theeventType
->value
untouched. This leads to confusion about the actual name of the backend infrastructure. To resolve this, the fieldSubscriptionStatus
->CleanEventTypes
was added that contains the cleaned names.Alongside some minor refactoring happened.