From 173a34b083294e5066162f2acb8344fb5567b1d3 Mon Sep 17 00:00:00 2001 From: Fedor Korotkov Date: Wed, 3 Dec 2025 14:45:58 -0500 Subject: [PATCH] Some extra documentation for LLMs (#377) --- internal/worker/fsm.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/worker/fsm.go b/internal/worker/fsm.go index 34f90ab..e22b357 100644 --- a/internal/worker/fsm.go +++ b/internal/worker/fsm.go @@ -22,6 +22,9 @@ const ( ActionDelete Action = "delete" ) +/** + * Mapping of actions on how to act for a remote VM state based on a local VM state. + */ var transitions = map[mo.Option[v1.VMStatus]]map[mo.Option[v1.VMStatus]]Action{ mo.None[v1.VMStatus](): { mo.None[v1.VMStatus](): ActionIgnore, @@ -32,7 +35,7 @@ var transitions = map[mo.Option[v1.VMStatus]]map[mo.Option[v1.VMStatus]]Action{ mo.Some(v1.VMStatusPending): { mo.None[v1.VMStatus](): ActionCreate, mo.Some(v1.VMStatusPending): ActionMonitorPending, - mo.Some(v1.VMStatusRunning): ActionReportRunning, + mo.Some(v1.VMStatusRunning): ActionReportRunning, // example, remote state is pending and local state is running mo.Some(v1.VMStatusFailed): ActionFail, }, mo.Some(v1.VMStatusRunning): {