2023-11-12 09:07:23 +00:00
|
|
|
|
using KubernetesWorkflow.Types;
|
2023-10-31 10:22:59 +00:00
|
|
|
|
|
|
|
|
|
namespace TestClusterStarter
|
|
|
|
|
{
|
|
|
|
|
public class ClusterTestSetup
|
|
|
|
|
{
|
|
|
|
|
public ClusterTestSetup(ClusterTestSpec[] specs)
|
|
|
|
|
{
|
|
|
|
|
Specs = specs;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ClusterTestSpec[] Specs { get; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class ClusterTestSpec
|
|
|
|
|
{
|
|
|
|
|
public ClusterTestSpec(string name, string filter, int replication, int durationSeconds, string? codexImageOverride)
|
|
|
|
|
{
|
|
|
|
|
Name = name;
|
|
|
|
|
Filter = filter;
|
|
|
|
|
Replication = replication;
|
|
|
|
|
DurationSeconds = durationSeconds;
|
|
|
|
|
CodexImageOverride = codexImageOverride;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Name { get; }
|
|
|
|
|
public string Filter { get; }
|
|
|
|
|
public int Replication { get; }
|
|
|
|
|
public int DurationSeconds { get; }
|
|
|
|
|
public string? CodexImageOverride { get; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class ClusterTestDeployment
|
|
|
|
|
{
|
|
|
|
|
public ClusterTestDeployment(RunningContainer[] containers)
|
|
|
|
|
{
|
|
|
|
|
Containers = containers;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public RunningContainer[] Containers { get; }
|
|
|
|
|
}
|
|
|
|
|
}
|