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

pkg: consolidate options in a package #271

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

ffromani
Copy link
Collaborator

We intentionally added per-package Options with the intent to decouple them and make fully independent, hoping to make the packages as easy as possible to consume.

Unfortunately things quickly spiralled out of control, and nowadays we have a relatively long chain of rote conversions to do to pass parameters from the higher level packages down to the actual consumers.

This is starting to really hurt maintainability, so we move back the pendulum centralizing the Options and reducing them (de-normalizing?).

Both approaches are debatable. Centralizing options has its own drawbacks, but at the current state is the lesser evil. This is the beginning of this work, and in future release we are likely to review the approach again.

Fixes: #182

We intentionally added per-package Options with the intent
to decouple them and make fully independent, hoping to make the
packages as easy as possible to consume.

Unfortunately things quickly spiralled out of control, and nowadays
we have a relatively long chain of rote conversions to do to pass
parameters from the higher level packages down to the actual consumers.

This is starting to really hurt maintainability, so we move back the
pendulum centralizing the Options and reducing them (de-normalizing?).

Both approaches are debatable. Centralizing options has its own
drawbacks, but at the current state is the lesser evil.
This is the beginning of this work, and in future release we are likely
to review the approach again.

Signed-off-by: Francesco Romani <[email protected]>
@ffromani ffromani merged commit fcf14ad into k8stopologyawareschedwg:main Jan 24, 2024
4 checks passed
@ffromani ffromani deleted the less-options-try2 branch January 24, 2024 10:47
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.

create common options, remove intermediate layers
1 participant