45 lines
1.0 KiB
Nix
45 lines
1.0 KiB
Nix
{ lib, ... }:
|
|
{
|
|
imports = [ ];
|
|
|
|
config = {
|
|
nixidy = {
|
|
target = {
|
|
repository = "https://gitlab.com/oveanbox/manifests.git";
|
|
branch = "main";
|
|
rootPath = "_manifests";
|
|
};
|
|
|
|
resourceImports = [
|
|
./cilium-crd.nix
|
|
./kyverno-crd.nix
|
|
];
|
|
|
|
chartsDir = ../charts;
|
|
|
|
defaults = {
|
|
syncPolicy = {
|
|
autoSync = {
|
|
enabled = true;
|
|
prune = false;
|
|
selfHeal = false;
|
|
};
|
|
};
|
|
|
|
# Many helm chars will render all resources with the
|
|
# following labels.
|
|
# This produces huge diffs when the charts are updated
|
|
# because the values of these labels change each release.
|
|
# Here we add a transformer that strips them out after
|
|
# templating the helm charts in each application.
|
|
helm.transformer = map (
|
|
lib.kube.removeLabels [
|
|
"app.kubernetes.io/version"
|
|
"helm.sh/chart"
|
|
]
|
|
);
|
|
};
|
|
};
|
|
};
|
|
}
|