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

scaleutils: refactor to make external plugins possible and easier #395

Merged
merged 9 commits into from
Feb 24, 2021

Conversation

jrasell
Copy link
Member

@jrasell jrasell commented Feb 22, 2021

Refactor of the scaleutils package so that external plugins are possible without need to modify the core codebase. The setup of the package is also easier, reducing the strain on plugin developers performing tasks such as config map parsing where possible.

The old functionality has been marked as deprecated and the files moved to use a deprecated prefix. This has been done in the hope to ensure the deprecated code is removed in a timely manner, and not missed easily.

There is a new nodepool package that handles the node pool identification methods. This is wrapped in an interface, allowing us to add additional methods in the future if we desire. This is internal on purpose as I don't see any real reason why this should be the responsibility of plugins, or to even allow that possibility.

All multierrors from scaleutils are now wrapped so their output is formatted in a much easier to read manner. This is currently only used within this package, but would be worth extending to the whole application in the future.

closes #259
closes #377

Copy link
Contributor

@cgbaker cgbaker left a comment

Choose a reason for hiding this comment

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

lgtm 💯

Copy link
Contributor

@lgfa29 lgfa29 left a comment

Choose a reason for hiding this comment

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

:shipit:

@jrasell jrasell merged commit 26e14df into master Feb 24, 2021
@jrasell jrasell deleted the f-gh-377 branch February 24, 2021 07:36
jrasell added a commit that referenced this pull request Feb 24, 2021
jrasell added a commit that referenced this pull request Feb 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants