1
0
Fork 0
mirror of https://git.sr.ht/~goorzhel/turboprop synced 2024-12-14 11:37:37 +00:00

Parametrize app-template chart

I was unwisely locking downstream flakes into a specific version of AT.
This commit is contained in:
Antonio Gurgel 2024-02-16 21:30:37 -08:00
parent 3018cd2a87
commit a989b3bf6d

View file

@ -2,7 +2,10 @@
builders,
fetchers,
pkgs,
}: rec {
}: let
bundledATChart = fetchers.helmChart (import ./chart.nix);
in
rec {
mkImageAttrs = image:
with builtins; let
vals = pkgs.lib.strings.splitString ":" image;
@ -38,13 +41,14 @@
namespace,
name,
mainImage,
appTemplateChart ? bundledATChart,
values ? {},
kubeVersion ? pkgs.kubernetes.version,
apiVersions ? [],
}:
builders.helmChart {
inherit name namespace kubeVersion apiVersions;
chart = fetchers.helmChart (import ./chart.nix);
chart = appTemplateChart;
values =
pkgs.lib.attrsets.recursiveUpdate
{