-
Notifications
You must be signed in to change notification settings - Fork 1
refactor: standardize fractal I/II & II/II #1
base: master
Are you sure you want to change the base?
Conversation
the motivation for standardizing fractal is to reduce boilerplate increase mindshare and lower the effort to contribute for std users. std users will likely become very active users of and contributors to fractal in the near future.
77389b5
to
56eb83c
Compare
["lib" "validators"] | ||
["ext" "hooks"] | ||
["ext" "flux"] | ||
]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also have an actual improvement: This is not limited to x86_64-linux anymore so mac users can use it.
I checked xnlib
only depends on system
for ansi colors, so the code paths used herein are unaffected by xnlib
's hardcoding of system
.
ext/hooks.nix
Outdated
transformer = config: resource: | ||
if config.cluster.renderer.mode == "flux" | ||
# consume the flux tranformer default for CRDs | ||
then cell.flux.transformer {inherit config;} null null resource | ||
else resource; | ||
|
||
builder = config: [] ++ ( | ||
optional (config.cluster.renderer.mode == "flux") | ||
(cell.flux.buildLayerKustomizations config) | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also took the liberty to cleanup complex mutual nesting with mutual function callbacks and consolidate extensions into this hook integration file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i.e. lib
should know nothing about the details of ext
, ext
should only consume a very limited set of contracts from lib
.
6119ac8
to
0c62f94
Compare
f5f582c
to
31ed5d6
Compare
43cc03a
to
daee51e
Compare
daee51e
to
bd23d72
Compare
the motivation for standardizing fractal is to reduce boilerplate
increase mindshare and lower the effort to contribute for std users.
std users will likely become very active users of and contributors
to fractal in the near future.