openenv / server /actions /drain_action.py
MrShadowBlade's picture
Implement Kubernetes action classes and execution logic
57c06cb
raw
history blame contribute delete
227 Bytes
from pydantic import BaseModel, Field
from typing import Literal
class DrainNodeAction(BaseModel):
action_type: Literal["drain_node"] = "drain_node"
node_name: str = Field(..., description="Node to cordon and drain")