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

Use clowder and kafka broker configuration from ioutils v1.25.2 #692

Closed
wants to merge 2 commits into from

Conversation

epapbak
Copy link
Collaborator

@epapbak epapbak commented Jan 16, 2024

Description

insights-operator-utils v1.25.2 introduces the following reusable packages (across our services):

  • github.com/RedHatInsights/insights-operator-utils/clowder
  • github.com/RedHatInsights/insights-operator-utils/kafka
  • pgutils "github.com/RedHatInsights/insights-operator-utils/postgres

In this PR we refactor the ccx-notification-writer to use those. This is a first step towards moving the common/shared/similar code from our Go-based services related to Clowder, DB, and Kafka into insights-operator-utils.

Most important change is that now we expect a list of broker addresses instead of a single broker address in the BrokerConfiguration structure. This is because we now expect Clowder to always provide the information of a multi-broker Kafka cluster.

Fixes CCXDEV-12328

Type of change

  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactor (refactoring code, removing useless files)
  • Configuration update

Testing steps

Please describe how the change was tested locally. If, for some reason, the testing was not done or not done fully, please describe what are the testing steps.

Checklist

  • make before_commit passes
  • updated documentation wherever necessary
  • added or modified tests if necessary
  • updated schemas and validators in insights-data-schemas in case of input/output change

@epapbak
Copy link
Collaborator Author

epapbak commented Feb 15, 2024

This functionality was delivered as part of #704 .

@epapbak epapbak closed this Feb 15, 2024
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.

1 participant