grafana-dashboards-permissions #36
@@ -58,10 +58,9 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Build effective labels for a host
|
# Build effective labels for a host
|
||||||
# Always includes hostname; only includes tier/priority/role if non-default
|
# Always includes hostname and tier; only includes priority/role if non-default
|
||||||
buildEffectiveLabels = host:
|
buildEffectiveLabels = host:
|
||||||
{ hostname = host.hostname; }
|
{ hostname = host.hostname; tier = host.tier; }
|
||||||
// (lib.optionalAttrs (host.tier != "prod") { tier = host.tier; })
|
|
||||||
// (lib.optionalAttrs (host.priority != "high") { priority = host.priority; })
|
// (lib.optionalAttrs (host.priority != "high") { priority = host.priority; })
|
||||||
// (lib.optionalAttrs (host.role != null) { role = host.role; })
|
// (lib.optionalAttrs (host.role != null) { role = host.role; })
|
||||||
// host.labels;
|
// host.labels;
|
||||||
|
|||||||
Reference in New Issue
Block a user