[FEATURE] Initial Storage Configuration

This commit is contained in:
Dunemask 2024-01-23 13:43:13 -07:00
parent 3d73f69678
commit b84fba6153
4 changed files with 46 additions and 0 deletions

View file

@ -20,7 +20,9 @@ export async function createServerEntry(serverSpec) {
host,
version,
serverType: server_type,
cpu, // TODO: Ignored for now by the K8S manifests
memory,
storage,
extraPorts: extra_ports,
backupHost: backup_host,
backupBucket: backup_bucket_path,
@ -33,7 +35,9 @@ export async function createServerEntry(serverSpec) {
host,
version,
server_type,
cpu, // TODO: Ignored for now by the K8S manifests
memory,
storage,
extra_ports,
backup_enabled: !!backup_interval ? true : null, // We already verified the payload, so any backup key will work
backup_host,
@ -51,7 +55,9 @@ export async function createServerEntry(serverSpec) {
host,
version,
server_type: serverType,
cpu, // TODO: Ignored for now by the K8S manifests
memory,
storage,
extra_ports: extraPorts,
backup_enabled: backupEnabled,
backup_host: backupHost,
@ -68,7 +74,9 @@ export async function createServerEntry(serverSpec) {
host,
version,
serverType,
cpu, // TODO: Ignored for now by the K8S manifests
memory,
storage,
extraPorts,
backupEnabled,
backupHost,
@ -102,7 +110,9 @@ export async function getServerEntry(serverId) {
host,
version,
server_type: serverType,
cpu, // TODO: Ignored for now by the K8S manifests
memory,
storage,
extra_ports: extraPorts,
backup_enabled: backupEnabled,
backup_host: backupHost,
@ -119,7 +129,9 @@ export async function getServerEntry(serverId) {
host,
version,
serverType,
cpu, // TODO: Ignored for now by the K8S manifests
memory,
storage,
extraPorts,
backupEnabled,
backupHost,
@ -140,7 +152,9 @@ export async function modifyServerEntry(serverSpec) {
host,
version,
serverType: server_type,
cpu, // TODO: Ignored for now by the K8S manifests
memory,
// storage, // DO NOT INCLUDE THIS KEY, Not all storage providers in kubernetes allow for dynamically resizable PVCs
extraPorts: extra_ports,
backupEnabled: backup_enabled,
backupHost: backup_host,
@ -157,7 +171,9 @@ export async function modifyServerEntry(serverSpec) {
host,
version,
server_type,
cpu, // TODO: Ignored for now by the K8S manifests
memory,
// storage, // DO NOT INCLUDE THIS KEY, Not all storage providers in kubernetes allow for dynamically resizable PVCs
extra_ports,
backup_enabled,
backup_host,