1
0
Fork 0
mirror of https://git.sr.ht/~goorzhel/turboprop synced 2024-12-15 17:50:52 +00:00
Commit graph

29 commits

Author SHA1 Message Date
Antonio Gurgel
afb5aeea36 Truck in dev niceties from previous k8s repo 2023-11-16 21:29:59 -08:00
Antonio Gurgel
7d912d6ba4 Add Kustomizations for each release in output 2023-11-16 20:34:15 -08:00
Antonio Gurgel
1ade63a493 Pull packages.*.default's installPhase out into lib/ 2023-11-16 20:11:09 -08:00
Antonio Gurgel
60cab327ed Finally build the envisioned output 2023-11-16 19:50:44 -08:00
Antonio Gurgel
a90896c0b9 Finally build the whole flake 2023-11-16 18:16:27 -08:00
Antonio Gurgel
46b20e720d Fumble more with gathering releases for .#default 2023-11-15 18:36:31 -08:00
Antonio Gurgel
1826882c13 Factor out values-gathering 2023-11-15 18:34:32 -08:00
Antonio Gurgel
59116a7f13 Flail at creating default output
I envision the derivation output to be a directory with nested namespace
directories with each release as a single YAML inside.

But I'm currently stuck at the `nix build` part.
2023-11-15 17:36:29 -08:00
Antonio Gurgel
bef2c80e9f Make release tree itself an output
I was puzzling over how to cobble all these derivations into one
mega-derivation, but I might not have to.
2023-11-15 16:44:34 -08:00
Antonio Gurgel
771aeccb54 Simplify leaf derivations
An attrset with a single attr named `out`? Nah, pull it all up one level
and make the _module_ the derivation.
2023-11-15 16:43:54 -08:00
Antonio Gurgel
d26e1356de Create lib.yamlBundle
rakeLeaves moved to a separate module so that it still won't require
`pkgs`, which would pull it into `eachDefaultSystem`.
2023-11-15 15:37:28 -08:00
Antonio Gurgel
c2c860d613 Figure out how to install YAML bundle 2023-11-15 15:20:39 -08:00
Antonio Gurgel
da5b6c0336 wip gw 2023-11-15 10:58:06 -08:00
Antonio Gurgel
08cd7f8082 Simplify buildReleases 2023-11-15 10:57:46 -08:00
Antonio Gurgel
caa0f0b3b2 Increase godlike genericness
Now releases can be built with a single function, be they Helm releases
or YAML bundles copied from Git.
2023-11-15 09:12:40 -08:00
Antonio Gurgel
581ad284dd Trim bogusVersion check
YAGNI (yet).
2023-11-15 08:44:05 -08:00
Antonio Gurgel
b645542f8a Fix last vestige of copy-pasta 2023-11-15 08:43:46 -08:00
Antonio Gurgel
a2abba2889 Ascend to godlike levels of genericness
charts/ and src/ both have two levels of children:
- charts/$repo/$chart
- src/$ns/$release

So, why not use one function to rake them both?

Also, the leaf-raking doesn't require nixpkgs or nix-kube-generators so
I moved everything that does (e.g.: `downloadCharts`) into the
`eachDefaultSystem` part of the output, following the example of
nixhelm's flake.
2023-11-15 01:36:46 -08:00
Antonio Gurgel
6ad3bf06e4 Template a single package 2023-11-15 00:34:07 -08:00
Antonio Gurgel
a28eda512f Refine output and establish vague direction 2023-11-14 23:58:37 -08:00
Antonio Gurgel
2a784978f5 Don't redundantly pass nixpkgs
Why instantiate kubelib in `lib` when I have one in `flake.nix`?

Also, refactor `lib` so I understand it better. (It's straight copypasta
from `nixhelm`, and that bit me several times already.)
2023-11-14 23:37:27 -08:00
Antonio Gurgel
df4c58708f dumbass
`pkgs = nixpkgs` was my issue.
2023-11-14 23:33:58 -08:00
Antonio Gurgel
7c865e5674 More stupid typos; try building app-template
Stuck on `pkgs` missing `stdenv`, but how can that be if I fed `inherit
pkgs` to kubelib...?
2023-11-14 23:32:44 -08:00
Antonio Gurgel
d53fd11ca2 Just import pkgs from the flake; fix stupid typo 2023-11-14 23:28:54 -08:00
Antonio Gurgel
aada150c63 Try importing nixhelm's generator as a lib 2023-11-14 23:20:19 -08:00
Antonio Gurgel
d7ed2e4616 nix fmt 2023-11-14 22:55:56 -08:00
Antonio Gurgel
5c6de22ef1 rm Longhorn bundle
In favor of the Helm chart I'll eventually add.
2023-11-14 22:55:49 -08:00
Antonio Gurgel
a14936684e fixup! Add flake 2023-11-14 22:15:40 -08:00
Antonio Gurgel
154cea3c09 Add flake
Chopped-down version of heywoodlh's.
2023-11-14 22:09:04 -08:00