aboutsummaryrefslogtreecommitdiff
path: root/src/zenovermind/overmindconfig.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2026-04-14 16:18:23 +0200
committerStefan Boberg <[email protected]>2026-04-14 16:18:23 +0200
commit053b7373357d2555bac111b94c6909bc148f24ac (patch)
tree456a8ce2a1b38ff6aef342324f7fa4c17fdadd30 /src/zenovermind/overmindconfig.cpp
parent5.8.4 (diff)
downloadzen-sb/compute-overmind.tar.xz
zen-sb/compute-overmind.zip
Add Overmind provisioner alongside Horde and Nomadsb/compute-overmind
Introduces the zenovermind module with an HTTP client targeting the Overmind REST gateway (/v1/jobs) and a management-thread provisioner that schedules, polls, and cancels jobs following the same pattern as the existing Nomad provisioner. Wired into the compute server with full CLI options (--overmind-*), lifecycle management, and maintenance tick support behind the ZEN_WITH_OVERMIND compile flag.
Diffstat (limited to 'src/zenovermind/overmindconfig.cpp')
-rw-r--r--src/zenovermind/overmindconfig.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/zenovermind/overmindconfig.cpp b/src/zenovermind/overmindconfig.cpp
new file mode 100644
index 000000000..63e955725
--- /dev/null
+++ b/src/zenovermind/overmindconfig.cpp
@@ -0,0 +1,28 @@
+// Copyright Epic Games, Inc. All Rights Reserved.
+
+#include <zenovermind/overmindconfig.h>
+
+namespace zen::overmind {
+
+bool
+OvermindConfig::Validate() const
+{
+ if (ServerUrl.empty())
+ {
+ return false;
+ }
+
+ if (Namespace.empty())
+ {
+ return false;
+ }
+
+ if (CommandRef.empty())
+ {
+ return false;
+ }
+
+ return true;
+}
+
+} // namespace zen::overmind