2023-11-12 10:07:23 +01:00
|
|
|
|
using KubernetesWorkflow.Recipe;
|
|
|
|
|
using KubernetesWorkflow.Types;
|
|
|
|
|
|
|
|
|
|
namespace KubernetesWorkflow
|
2023-09-13 15:10:19 +02:00
|
|
|
|
{
|
|
|
|
|
public interface IK8sHooks
|
|
|
|
|
{
|
2024-04-13 17:09:17 +03:00
|
|
|
|
void OnContainersStarted(RunningPod runningPod);
|
|
|
|
|
void OnContainersStopped(RunningPod runningPod);
|
2023-09-13 16:06:05 +02:00
|
|
|
|
void OnContainerRecipeCreated(ContainerRecipe recipe);
|
2023-09-13 15:10:19 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class DoNothingK8sHooks : IK8sHooks
|
|
|
|
|
{
|
2024-04-13 17:09:17 +03:00
|
|
|
|
public void OnContainersStarted(RunningPod runningPod)
|
2023-09-13 15:10:19 +02:00
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2024-04-13 17:09:17 +03:00
|
|
|
|
public void OnContainersStopped(RunningPod runningPod)
|
2023-09-13 15:10:19 +02:00
|
|
|
|
{
|
|
|
|
|
}
|
2023-09-13 16:06:05 +02:00
|
|
|
|
|
|
|
|
|
public void OnContainerRecipeCreated(ContainerRecipe recipe)
|
|
|
|
|
{
|
|
|
|
|
}
|
2023-09-13 15:10:19 +02:00
|
|
|
|
}
|
|
|
|
|
}
|