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

clean event types #12488

Merged
merged 36 commits into from Dec 27, 2021
Merged

Conversation

friedrichwilken
Copy link
Contributor

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 the eventType -> value untouched. This leads to confusion about the actual name of the backend infrastructure. To resolve this, the field SubscriptionStatus -> CleanEventTypes was added that contains the cleaned names.

Alongside some minor refactoring happened.

@friedrichwilken
Copy link
Contributor Author

/hold

@kyma-bot kyma-bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 28, 2021
@mfaizanse mfaizanse removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 29, 2021
@netlify
Copy link

netlify bot commented Nov 16, 2021

✔️ 🥰 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

Copy link
Contributor

@marcobebway marcobebway left a 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.

@kyma-bot kyma-bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Dec 11, 2021
@friedrichwilken
Copy link
Contributor Author

/retest

@marcobebway
Copy link
Contributor

/test pre-main-kyma-integration-k3d-central-app-connectivity-compass

@marcobebway
Copy link
Contributor

/test-required

@marcobebway
Copy link
Contributor

/test pre-main-kyma-integration-k3d-compass-dev

@marcobebway
Copy link
Contributor

/retest

2 similar comments
@marcobebway
Copy link
Contributor

/retest

@marcobebway
Copy link
Contributor

/retest

marcobebway
marcobebway previously approved these changes Dec 23, 2021
Copy link
Contributor

@marcobebway marcobebway left a comment

Choose a reason for hiding this comment

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

/lgtm

@kyma-bot kyma-bot added the lgtm Looks good to me! label Dec 23, 2021
@marcobebway marcobebway added the area/eventing Issues or PRs related to eventing label Dec 23, 2021
@marcobebway
Copy link
Contributor

/retest

1 similar comment
@marcobebway
Copy link
Contributor

/retest

@marcobebway
Copy link
Contributor

/lgtm

@kyma-bot kyma-bot added the lgtm Looks good to me! label Dec 27, 2021
@kyma-bot kyma-bot merged commit 987b152 into kyma-project:main Dec 27, 2021
@friedrichwilken friedrichwilken deleted the backendInfrastructures branch December 27, 2021 14:03
mfaizanse pushed a commit to mfaizanse/kyma that referenced this pull request Jan 20, 2022
* 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>
kyma-bot pushed a commit that referenced this pull request Jan 21, 2022
…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>
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 lgtm Looks good to me! size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Report the actual cleaned event-type list in the Kyma Subscription custom resource
5 participants