38 lines
912 B
Nix
38 lines
912 B
Nix
{ lib, applib, config, ... }:
|
|
let
|
|
cfg = config.services.openfga;
|
|
|
|
namespace = "${env}-openfga";
|
|
env = "prod";
|
|
project = "aux";
|
|
cluster = "https://kubernetes.default.svc";
|
|
|
|
values = lib.attrsets.recursiveUpdate {} cfg.values;
|
|
in
|
|
{
|
|
options.services.openfga = applib.appOptions {};
|
|
|
|
config = applib.appConfig cfg "${cfg.env}-openfga" {
|
|
inherit namespace;
|
|
inherit project;
|
|
|
|
destination.server = cluster;
|
|
|
|
helm.releases."${env}-openfga" = {
|
|
inherit values;
|
|
chart = lib.helm.downloadHelmChart {
|
|
repo = "https://openfga.github.io/helm-charts";
|
|
chart = "openfga";
|
|
version = "0.2.12";
|
|
chartHash = "sha256-7yLcw9/oNPvCePrtTJwKAG88t0Ym5Dl/S83Gz+gQdDU=";
|
|
};
|
|
};
|
|
|
|
annotations = {};
|
|
resources = {
|
|
services.poop.spec = {
|
|
};
|
|
};
|
|
};
|
|
}
|