@ludeo/cloud-common 1.2.234-beta-yahil-3 → 1.2.234-beta-yahil-4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7,7 +7,7 @@ export declare enum CloudSettingsKeys {
|
|
|
7
7
|
ADDITIONAL_LAUNCH_ARGS = "additionalLaunchArgs",
|
|
8
8
|
ADDITIONAL_ENVIRONMENT_VARIABLES = "additionalEnvironmentVariables",
|
|
9
9
|
MACHINE_CLASS_PRIORITY = "machineClassPriority",
|
|
10
|
-
|
|
10
|
+
SPOT_ALLOCATION = "spotAllocation"
|
|
11
11
|
}
|
|
12
12
|
export interface CloudSettingsTypeMap {
|
|
13
13
|
[CloudSettingsKeys.GAME_LOADING_TIME]: number;
|
|
@@ -17,7 +17,7 @@ export interface CloudSettingsTypeMap {
|
|
|
17
17
|
[CloudSettingsKeys.ADDITIONAL_LAUNCH_ARGS]: string[];
|
|
18
18
|
[CloudSettingsKeys.ADDITIONAL_ENVIRONMENT_VARIABLES]: Record<string, string>;
|
|
19
19
|
[CloudSettingsKeys.MACHINE_CLASS_PRIORITY]: LudeoCastV2MachineClass[];
|
|
20
|
-
[CloudSettingsKeys.
|
|
20
|
+
[CloudSettingsKeys.SPOT_ALLOCATION]: number;
|
|
21
21
|
}
|
|
22
22
|
export declare const MACHINE_CLASS_PRIORITY_DEFAULT_VALUES: LudeoCastV2MachineClass[];
|
|
23
23
|
export type CloudSettings = {
|
|
@@ -11,7 +11,7 @@ var CloudSettingsKeys;
|
|
|
11
11
|
CloudSettingsKeys["ADDITIONAL_LAUNCH_ARGS"] = "additionalLaunchArgs";
|
|
12
12
|
CloudSettingsKeys["ADDITIONAL_ENVIRONMENT_VARIABLES"] = "additionalEnvironmentVariables";
|
|
13
13
|
CloudSettingsKeys["MACHINE_CLASS_PRIORITY"] = "machineClassPriority";
|
|
14
|
-
CloudSettingsKeys["
|
|
14
|
+
CloudSettingsKeys["SPOT_ALLOCATION"] = "spotAllocation";
|
|
15
15
|
})(CloudSettingsKeys || (exports.CloudSettingsKeys = CloudSettingsKeys = {}));
|
|
16
16
|
exports.MACHINE_CLASS_PRIORITY_DEFAULT_VALUES = [
|
|
17
17
|
ludeocast_v2_1.LudeoCastV2MachineClass.N1_STANDARD_8,
|
|
@@ -71,9 +71,9 @@ exports.CLOUD_SETTINGS_DEFAULT_VALUES = {
|
|
|
71
71
|
displayKey: "Machine Class Priority",
|
|
72
72
|
defaultValue: exports.MACHINE_CLASS_PRIORITY_DEFAULT_VALUES
|
|
73
73
|
},
|
|
74
|
-
[CloudSettingsKeys.
|
|
74
|
+
[CloudSettingsKeys.SPOT_ALLOCATION]: {
|
|
75
75
|
type: "number",
|
|
76
|
-
key: CloudSettingsKeys.
|
|
76
|
+
key: CloudSettingsKeys.SPOT_ALLOCATION,
|
|
77
77
|
displayKey: "Spot Allocation (%)",
|
|
78
78
|
defaultValue: 0,
|
|
79
79
|
},
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@ export enum CloudSettingsKeys {
|
|
|
8
8
|
ADDITIONAL_LAUNCH_ARGS = "additionalLaunchArgs",
|
|
9
9
|
ADDITIONAL_ENVIRONMENT_VARIABLES = "additionalEnvironmentVariables",
|
|
10
10
|
MACHINE_CLASS_PRIORITY = "machineClassPriority",
|
|
11
|
-
|
|
11
|
+
SPOT_ALLOCATION = "spotAllocation",
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
// Define the mapping of setting keys to their actual value types
|
|
@@ -20,7 +20,7 @@ export interface CloudSettingsTypeMap {
|
|
|
20
20
|
[CloudSettingsKeys.ADDITIONAL_LAUNCH_ARGS]: string[];
|
|
21
21
|
[CloudSettingsKeys.ADDITIONAL_ENVIRONMENT_VARIABLES]: Record<string, string>;
|
|
22
22
|
[CloudSettingsKeys.MACHINE_CLASS_PRIORITY]: LudeoCastV2MachineClass[];
|
|
23
|
-
[CloudSettingsKeys.
|
|
23
|
+
[CloudSettingsKeys.SPOT_ALLOCATION]: number;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
|
|
@@ -130,9 +130,9 @@ export const CLOUD_SETTINGS_DEFAULT_VALUES: Record<
|
|
|
130
130
|
displayKey: "Machine Class Priority",
|
|
131
131
|
defaultValue: MACHINE_CLASS_PRIORITY_DEFAULT_VALUES
|
|
132
132
|
},
|
|
133
|
-
[CloudSettingsKeys.
|
|
133
|
+
[CloudSettingsKeys.SPOT_ALLOCATION]: {
|
|
134
134
|
type: "number",
|
|
135
|
-
key: CloudSettingsKeys.
|
|
135
|
+
key: CloudSettingsKeys.SPOT_ALLOCATION,
|
|
136
136
|
displayKey: "Spot Allocation (%)",
|
|
137
137
|
defaultValue: 0,
|
|
138
138
|
},
|