2
0
mirror of synced 2025-01-26 08:20:02 +00:00

39 lines
1.1 KiB
C#
Raw Normal View History

2023-05-31 13:34:12 +02:00
using DistTestCore.Codex;
using KubernetesWorkflow;
2023-04-12 16:06:04 +02:00
namespace DistTestCore
{
public class Configuration
{
public KubernetesWorkflow.Configuration GetK8sConfiguration(ITimeSet timeSet)
2023-04-12 16:06:04 +02:00
{
return new KubernetesWorkflow.Configuration(
2023-05-03 14:18:37 +02:00
k8sNamespacePrefix: "ct-",
2023-04-12 16:06:04 +02:00
kubeConfigFile: null,
operationTimeout: timeSet.K8sOperationTimeout(),
retryDelay: timeSet.WaitForK8sServiceDelay(),
2023-04-12 16:06:04 +02:00
locationMap: new[]
{
new ConfigurationLocationEntry(Location.BensOldGamingMachine, "worker01"),
new ConfigurationLocationEntry(Location.BensLaptop, "worker02"),
}
);
}
public Logging.LogConfig GetLogConfig()
{
2023-05-05 08:33:10 +02:00
return new Logging.LogConfig("CodexTestLogs", debugEnabled: false);
2023-04-12 16:06:04 +02:00
}
public string GetFileManagerFolder()
{
return "TestDataFiles";
}
2023-05-31 13:34:12 +02:00
public CodexLogLevel GetCodexLogLevel()
{
return CodexLogLevel.Trace;
}
2023-04-12 16:06:04 +02:00
}
}