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 4764e1a452
commit 104cc71f0e

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
{