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