wip: well, looking better
This commit is contained in:
+6
-6
@@ -60,18 +60,18 @@
|
||||
with pkgs.lib;
|
||||
let
|
||||
app = conf // {
|
||||
name = if builtins.isNull cfg.name then "${cfg.env}-${name}" else cfg.name;
|
||||
name = if builtins.isNull cfg.name then name else cfg.name;
|
||||
project = cfg.project;
|
||||
|
||||
destination.server = cfg.cluster;
|
||||
|
||||
createNamespace = true;
|
||||
createNamespace = true;
|
||||
|
||||
compareOptions = {
|
||||
compareOptions = {
|
||||
serverSideDiff = cfg.serverSideDiff;
|
||||
};
|
||||
};
|
||||
|
||||
syncPolicy = {
|
||||
syncPolicy = {
|
||||
syncOptions = {
|
||||
applyOutOfSyncOnly = true;
|
||||
};
|
||||
@@ -80,7 +80,7 @@
|
||||
prune = cfg.prune;
|
||||
selfHeal = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
} // (if builtins.isNull cfg.namespace then {} else { namespace = cfg.namespace; });
|
||||
in mkIf cfg.enable { applications.${name} = app; };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user