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

Remove system kafka config from db and api #178

Merged
merged 4 commits into from
Mar 11, 2022

Conversation

leonlnj
Copy link
Contributor

@leonlnj leonlnj commented Mar 10, 2022

Overview

This MR seeks to patch the kafka configuration that was created previously.

Modification

  • Removing all MaxMessageBytes and CompressionType from /api/* as its not required to persist in db nor return in api response. From the api server perspective it only needs to create the env var in api/turing/cluster/servicebuilder/router.go-buildRouterEnvs which will be picked up by the router.
  • PassingrouterDefault instead of individual default as arguments
  • api/turing/service/alert_service_test.go - updated error message for clarity

@leonlnj leonlnj changed the title Patch kafka config remove system kafka config from db and api Mar 10, 2022
@leonlnj leonlnj self-assigned this Mar 10, 2022
@leonlnj leonlnj marked this pull request as ready for review March 10, 2022 08:39
@leonlnj leonlnj requested a review from a team March 10, 2022 08:39
Copy link
Collaborator

@krithika369 krithika369 left a comment

Choose a reason for hiding this comment

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

LGTM.

api/turing/cluster/servicebuilder/router.go Outdated Show resolved Hide resolved
api/turing/service/router_deployment_service.go Outdated Show resolved Hide resolved
@krithika369 krithika369 changed the title remove system kafka config from db and api Remove system kafka config from db and api Mar 11, 2022
@leonlnj leonlnj merged commit e6a6dfa into caraml-dev:main Mar 11, 2022
leonlnj added a commit that referenced this pull request Mar 11, 2022
* update kafka config to not be saved in db

* update kafka config to not be saved in db - sort imports

* use plural for routerDefaults var

* use plural for routerDefaults var

Co-authored-by: leonlnj <[email protected]>
(cherry picked from commit e6a6dfa)
leonlnj added a commit that referenced this pull request Mar 11, 2022
* update kafka config to not be saved in db

* update kafka config to not be saved in db - sort imports

* use plural for routerDefaults var

* use plural for routerDefaults var

Co-authored-by: leonlnj <[email protected]>
(cherry picked from commit e6a6dfa)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants