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:
parent
3018cd2a87
commit
a989b3bf6d
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue