add helm chart example

This commit is contained in:
Bryton Hall 2022-08-15 01:27:50 -04:00
parent 54c35f61a0
commit 5c5191680e
3 changed files with 18 additions and 1 deletions

View file

@ -18,4 +18,4 @@ jobs:
run: nix -Lv flake check
- name: Check Nix parsing
run: nix -Lv develop -c "evalnix"
run: nix -Lv develop -c evalnix

View file

@ -3,4 +3,5 @@
evalModules ? (import ../. {}).evalModules.${system},
}: {registry ? "docker.io/gatehub"}: {
nginx-deployment = import ./nginx-deployment {inherit evalModules registry;};
helm-chart = import ./helm-chart {inherit evalModules;};
}

View file

@ -0,0 +1,16 @@
{evalModules}:
(evalModules {
module = {kubenix, ...}: {
imports = with kubenix.modules; [helm];
kubernetes.helm.instances.example = {
chart = kubenix.lib.helm.fetch {
chart = "nginx";
repo = "https://charts.bitnami.com/bitnami";
sha256 = "sha256-wP3tcBnySx+kvZqfW2W9k665oi8KOI50tCcAl0g9cuw=";
};
};
};
})
.config
.kubernetes
.result