Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

Decoupling processes and components #24

Closed
wants to merge 1 commit into from
Closed

Decoupling processes and components #24

wants to merge 1 commit into from

Conversation

mariomac
Copy link
Contributor

Prior to future refactorings for optimization, the components' instantiation + initialization + main loop have been separated.

Also, the loki emitter has been removed from the "enrich" process and moved to the same level, in the read/enrich/submit loop.

Also, the whole service build is moved to a common package, so we can make sure that the main function and the integration tests use the same service structure.

@openshift-ci
Copy link

openshift-ci bot commented Jan 27, 2022

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please ask for approval from mariomac after the PR has been reviewed.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jotak
Copy link
Member

jotak commented Jan 27, 2022

I only had a quick look but I think it all make sense, however, since @jpinsonneau is also doing some refactoring on his side with the Kafka PoC, I'd like to make sure that this can be consistent with what he's doing and that this isn't going to be too conflicting.. @jpinsonneau what do you think?

@jpinsonneau
Copy link
Contributor

That will conflicts a lot for sure but not impossible to merge and interesting to think about !

We need to discuss about goflow2 / kube-enricher / flowlogs2metrics common parts first and decide the best architecture solution.
Take a look at flowlogs2metrics pipelines for example

@mariomac
Copy link
Contributor Author

@jpinsonneau yeah, I'm trying to refactor into a similar architecture to the pipeline you show (commiting at small steps to minimize conflicts and errors). I realized that currently it's very difficult to do any modification because goflow2 code is pretty difficult to follow and the different pipeline steps are scattered in different, distant parts of the code.

@openshift-ci
Copy link

openshift-ci bot commented Feb 1, 2022

@mariomac: PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@mariomac
Copy link
Contributor Author

mariomac commented Feb 9, 2022

Superseeded by #29

@mariomac mariomac closed this Feb 9, 2022
@mariomac mariomac deleted the decouple branch February 9, 2022 09:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants