Tim Jones 1 месяц назад
Родитель
Сommit
09117b99ac

+ 1 - 1
RackPeek.Domain/Helpers/ThrowIfInvalid.cs

@@ -53,7 +53,7 @@ public static class ThrowIfInvalid
 
 
         var message = suggestions.Any()
         var message = suggestions.Any()
             ? $"System type '{systemType}' is not valid. Did you mean: {string.Join(", ", suggestions)}?"
             ? $"System type '{systemType}' is not valid. Did you mean: {string.Join(", ", suggestions)}?"
-            : $"System type '{systemType}' is not valid. Valid System types include hypervisor, baremetal vm, container, other etc";
+            : $"System type '{systemType}' is not valid. Valid System types include hypervisor, baremetal vm, container, cluster, other etc";
 
 
         throw new ValidationException(message);
         throw new ValidationException(message);
     }
     }

+ 1 - 0
RackPeek.Domain/Resources/SystemResources/SystemResource.cs

@@ -15,6 +15,7 @@ public class SystemResource : Resource, IDriveResource
         "container",
         "container",
         "embedded",
         "embedded",
         "cloud",
         "cloud",
+        "cluster",
         "other"
         "other"
     ];
     ];
 
 

+ 1 - 0
RackPeek.Web.Viewer/wwwroot/schemas/v2/schema.v2.json

@@ -318,6 +318,7 @@
               "type": "string",
               "type": "string",
               "enum": [
               "enum": [
                 "baremetal", "Baremetal",
                 "baremetal", "Baremetal",
+                "cluster", "Cluster",
                 "hypervisor", "Hypervisor",
                 "hypervisor", "Hypervisor",
                 "vm", "VM",
                 "vm", "VM",
                 "container", "embedded", "cloud", "other"
                 "container", "embedded", "cloud", "other"

+ 1 - 0
RackPeek.Web/wwwroot/schemas/v2/schema.v2.json

@@ -318,6 +318,7 @@
               "type": "string",
               "type": "string",
               "enum": [
               "enum": [
                 "baremetal", "Baremetal",
                 "baremetal", "Baremetal",
+                "cluster", "Cluster",
                 "hypervisor", "Hypervisor",
                 "hypervisor", "Hypervisor",
                 "vm", "VM",
                 "vm", "VM",
                 "container", "embedded", "cloud", "other"
                 "container", "embedded", "cloud", "other"

+ 2 - 0
Shared.Rcl/wwwroot/raw_docs/resource-levels.md

@@ -82,6 +82,8 @@ Systems represent the software environments that run on your hardware — or on
 | `container` | Container or container runtime | Docker container, LXC |
 | `container` | Container or container runtime | Docker container, LXC |
 | `embedded` | Firmware or embedded OS | OPNsense on a firewall appliance |
 | `embedded` | Firmware or embedded OS | OPNsense on a firewall appliance |
 | `cloud` | Cloud-hosted instance | AWS EC2, Hetzner VPS |
 | `cloud` | Cloud-hosted instance | AWS EC2, Hetzner VPS |
+| `cluster` | Logical compute cluster | Kubernetes cluster, Docker Swarm cluster |
+
 | `other` | Anything that doesn't fit above | Custom runtime |
 | `other` | Anything that doesn't fit above | Custom runtime |
 
 
 ### How Systems Connect
 ### How Systems Connect

+ 1 - 0
Tests/schemas/schema.v2.json

@@ -318,6 +318,7 @@
               "type": "string",
               "type": "string",
               "enum": [
               "enum": [
                 "baremetal", "Baremetal",
                 "baremetal", "Baremetal",
+                "cluster", "Cluster",
                 "hypervisor", "Hypervisor",
                 "hypervisor", "Hypervisor",
                 "vm", "VM",
                 "vm", "VM",
                 "container", "embedded", "cloud", "other"
                 "container", "embedded", "cloud", "other"