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

Expose components via functions with params merged with defaults #164

Merged
merged 16 commits into from
Nov 3, 2020

Conversation

metalmatze
Copy link
Contributor

Going forward the components exposed by this project are going to be functions.
That means that a bit of refactoring will be necessary to go to a next version.
It's best to look at our examples in this PR to see what needs changing, it shouldn't be much, as the config object is also used as a parameter object now.

With this new approach we hope to better scope/communicate the out-of-the-box configurable things compared to the ones that need to be overwritten when encountered. Meaning, everything that's not configurable is to be merged on top of the objects generated by the functions.

Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
@metalmatze metalmatze requested review from yeya24, kakkoyun and brancz and removed request for yeya24 November 2, 2020 17:40
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
@metalmatze metalmatze force-pushed the no-ksonnet-functions branch from 8fcbc59 to b5ea451 Compare November 2, 2020 17:54
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
Copy link
Member

@kakkoyun kakkoyun left a comment

Choose a reason for hiding this comment

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

Looks great 🥇 Only small nits

Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
Copy link
Member

@kakkoyun kakkoyun left a comment

Choose a reason for hiding this comment

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

👍

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