Skip to content
This repository has been archived by the owner on Dec 20, 2022. It is now read-only.

refactor: standardize fractal I/II & II/II #1

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

blaggacao
Copy link

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.

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.
@blaggacao blaggacao changed the title refactor: standardize fractal I/II refactor: standardize fractal I/II & II/II Dec 11, 2022
["lib" "validators"]
["ext" "hooks"]
["ext" "flux"]
];
Copy link
Author

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
Comment on lines 5 to 16
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)
);
Copy link
Author

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.

Copy link
Author

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.

@blaggacao blaggacao force-pushed the refactor-stdize-1 branch 2 times, most recently from 6119ac8 to 0c62f94 Compare December 12, 2022 01:26
@blaggacao blaggacao force-pushed the refactor-stdize-1 branch 2 times, most recently from f5f582c to 31ed5d6 Compare December 12, 2022 01:57
@blaggacao blaggacao force-pushed the refactor-stdize-1 branch 2 times, most recently from 43cc03a to daee51e Compare December 12, 2022 03:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant