From 4c46a708abb8059d549e1611aa017d062c8ecb81 Mon Sep 17 00:00:00 2001 From: Slava <20563034+veaceslavdoina@users.noreply.github.com> Date: Mon, 27 Nov 2023 19:06:04 +0200 Subject: [PATCH] Change affinity label (#85) https://github.com/codex-storage/infra-codex/issues/100 --- Framework/KubernetesWorkflow/K8sController.cs | 2 +- .../CodexContractsPlugin/CodexContractsContainerRecipe.cs | 2 +- .../CodexDiscordBotPlugin/DiscordBotContainerRecipe.cs | 2 +- ProjectPlugins/CodexPlugin/CodexContainerRecipe.cs | 2 +- ProjectPlugins/GethPlugin/GethContainerRecipe.cs | 2 +- ProjectPlugins/MetricsPlugin/PrometheusContainerRecipe.cs | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Framework/KubernetesWorkflow/K8sController.cs b/Framework/KubernetesWorkflow/K8sController.cs index e8c28ef..b994b75 100644 --- a/Framework/KubernetesWorkflow/K8sController.cs +++ b/Framework/KubernetesWorkflow/K8sController.cs @@ -393,7 +393,7 @@ namespace KubernetesWorkflow { new V1NodeSelectorRequirement { - Key = "workload-type", + Key = "allow-tests-pods", OperatorProperty = "NotIn", Values = notIns } diff --git a/ProjectPlugins/CodexContractsPlugin/CodexContractsContainerRecipe.cs b/ProjectPlugins/CodexContractsPlugin/CodexContractsContainerRecipe.cs index 3e5faa1..88faab2 100644 --- a/ProjectPlugins/CodexContractsPlugin/CodexContractsContainerRecipe.cs +++ b/ProjectPlugins/CodexContractsPlugin/CodexContractsContainerRecipe.cs @@ -21,7 +21,7 @@ namespace CodexContractsPlugin var address = config.GethNode.StartResult.Container.GetAddress(new NullLog(), GethContainerRecipe.HttpPortTag); - SetSchedulingAffinity(notIn: "tests-runners"); + SetSchedulingAffinity(notIn: "false"); AddEnvVar("DISTTEST_NETWORK_URL", address.ToString()); AddEnvVar("HARDHAT_NETWORK", "codexdisttestnetwork"); diff --git a/ProjectPlugins/CodexDiscordBotPlugin/DiscordBotContainerRecipe.cs b/ProjectPlugins/CodexDiscordBotPlugin/DiscordBotContainerRecipe.cs index e1596b4..3ca6669 100644 --- a/ProjectPlugins/CodexDiscordBotPlugin/DiscordBotContainerRecipe.cs +++ b/ProjectPlugins/CodexDiscordBotPlugin/DiscordBotContainerRecipe.cs @@ -13,7 +13,7 @@ namespace CodexDiscordBotPlugin { var config = startupConfig.Get(); - SetSchedulingAffinity(notIn: "tests-runners"); + SetSchedulingAffinity(notIn: "false"); AddEnvVar("TOKEN", config.Token); AddEnvVar("SERVERNAME", config.ServerName); diff --git a/ProjectPlugins/CodexPlugin/CodexContainerRecipe.cs b/ProjectPlugins/CodexPlugin/CodexContainerRecipe.cs index 5298279..e6315d2 100644 --- a/ProjectPlugins/CodexPlugin/CodexContainerRecipe.cs +++ b/ProjectPlugins/CodexPlugin/CodexContainerRecipe.cs @@ -29,7 +29,7 @@ namespace CodexPlugin SetResourcesRequest(milliCPUs: 100, memory: 100.MB()); //SetResourceLimits(milliCPUs: 4000, memory: 12.GB()); - SetSchedulingAffinity(notIn: "tests-runners"); + SetSchedulingAffinity(notIn: "false"); SetSystemCriticalPriority(); var config = startupConfig.Get(); diff --git a/ProjectPlugins/GethPlugin/GethContainerRecipe.cs b/ProjectPlugins/GethPlugin/GethContainerRecipe.cs index 9db6876..75acd69 100644 --- a/ProjectPlugins/GethPlugin/GethContainerRecipe.cs +++ b/ProjectPlugins/GethPlugin/GethContainerRecipe.cs @@ -24,7 +24,7 @@ namespace GethPlugin var args = CreateArgs(config); - SetSchedulingAffinity(notIn: "tests-runners"); + SetSchedulingAffinity(notIn: "false"); SetSystemCriticalPriority(); AddEnvVar("GETH_ARGS", args); diff --git a/ProjectPlugins/MetricsPlugin/PrometheusContainerRecipe.cs b/ProjectPlugins/MetricsPlugin/PrometheusContainerRecipe.cs index e132a8f..23ebf3a 100644 --- a/ProjectPlugins/MetricsPlugin/PrometheusContainerRecipe.cs +++ b/ProjectPlugins/MetricsPlugin/PrometheusContainerRecipe.cs @@ -14,7 +14,7 @@ namespace MetricsPlugin { var config = startupConfig.Get(); - SetSchedulingAffinity(notIn: "tests-runners"); + SetSchedulingAffinity(notIn: "false"); AddExposedPortAndVar("PROM_PORT", PortTag); AddEnvVar("PROM_CONFIG", config.PrometheusConfigBase64);