9e1beb6895
Rewrite of some of the Apps to Nix. Tried to convert
ApplicationSets to simple Applications with an ${env}
modifier.
46 lines
1021 B
Nix
46 lines
1021 B
Nix
{ lib, config, ... }:
|
|
let
|
|
cfg = config.apps.dapr;
|
|
env = config.apps.env;
|
|
|
|
values = lib.apps.appValues {
|
|
inherit env;
|
|
extraValues = {
|
|
global.ha.enabled = true;
|
|
};
|
|
};
|
|
|
|
in
|
|
{
|
|
options.apps.dapr = lib.apps.appOptions {
|
|
revision = lib.mkOption {
|
|
type = lib.types.str;
|
|
default = "1.14.4";
|
|
description = "Dapr chart version";
|
|
};
|
|
};
|
|
|
|
config = lib.apps.appConfig cfg "dapr" {
|
|
namespace = "argocd";
|
|
helm.releases.dapr = {
|
|
inherit values;
|
|
chart = lib.helm.downloadHelmChart {
|
|
repo = "https://dapr.github.io/helm-charts/";
|
|
chart = "dapr";
|
|
version = cfg.revision;
|
|
};
|
|
};
|
|
annotations = {
|
|
"argocd.argoproj.io/sync-options" = "SkipDryRunOnMissingResource=true";
|
|
};
|
|
resources = {
|
|
"argoproj.io".v1alpha1.Application.dapr.spec = {
|
|
destination = {
|
|
namespace = "dapr-system";
|
|
server = "https://kubernetes.default.svc";
|
|
};
|
|
project = "default";
|
|
};
|
|
};
|
|
};
|
|
} |