2
0
mirror of synced 2025-01-15 11:04:10 +00:00

28 lines
639 B
C#
Raw Normal View History

using KubernetesWorkflow.Recipe;
using KubernetesWorkflow.Types;
namespace KubernetesWorkflow
{
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);
}
public class DoNothingK8sHooks : IK8sHooks
{
2024-04-13 17:09:17 +03:00
public void OnContainersStarted(RunningPod runningPod)
{
}
2024-04-13 17:09:17 +03:00
public void OnContainersStopped(RunningPod runningPod)
{
}
2023-09-13 16:06:05 +02:00
public void OnContainerRecipeCreated(ContainerRecipe recipe)
{
}
}
}