mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-01-09 08:53:13 +00:00
31 lines
747 B
C#
31 lines
747 B
C#
using DistTestCore;
|
|
using KubernetesWorkflow;
|
|
|
|
namespace CodexNetDeployer
|
|
{
|
|
public class K8sHook : IK8sHooks
|
|
{
|
|
private readonly string testsTypeLabel;
|
|
|
|
public K8sHook(string testsTypeLabel)
|
|
{
|
|
this.testsTypeLabel = testsTypeLabel;
|
|
}
|
|
|
|
public void OnContainersStarted(RunningContainers rc)
|
|
{
|
|
}
|
|
|
|
public void OnContainersStopped(RunningContainers rc)
|
|
{
|
|
}
|
|
|
|
public void OnContainerRecipeCreated(ContainerRecipe recipe)
|
|
{
|
|
recipe.PodLabels.Add("tests-type", testsTypeLabel);
|
|
recipe.PodLabels.Add("runid", NameUtils.GetRunId());
|
|
recipe.PodLabels.Add("testid", NameUtils.GetTestId());
|
|
}
|
|
}
|
|
}
|