From d99d4129f34c7921969277feb51d9748dfca39a5 Mon Sep 17 00:00:00 2001 From: Astro Date: Mon, 28 Nov 2022 01:16:54 +0100 Subject: [PATCH] modules/cluster/deployment: add operator to needForSpeed nomad affinity --- modules/cluster/deployment.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/cluster/deployment.nix b/modules/cluster/deployment.nix index 049f2f37..8a23ac35 100644 --- a/modules/cluster/deployment.nix +++ b/modules/cluster/deployment.nix @@ -74,6 +74,7 @@ in } ]; affinities = lib.optionals config.deployment.needForSpeed (builtins.genList (i: { attribute = "\${meta.c3d2.cpuSpeed}"; + operator = ">="; value = toString (i + 1); weight = 10 + i; }) 10);