@kikimoradev/kcloud 0.10.0 → 0.11.0
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.
- package/dist/main.js +12 -2
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -956,6 +956,7 @@ const errorCodes = Object.keys({
|
|
|
956
956
|
"infrastructure.provider_error": "internal",
|
|
957
957
|
"infrastructure.operation_in_progress": "conflict",
|
|
958
958
|
"infrastructure.host_ops_disabled": "rule_violation",
|
|
959
|
+
"infrastructure.backups_unavailable": "rule_violation",
|
|
959
960
|
"infrastructure.maintenance_in_progress": "conflict",
|
|
960
961
|
"infrastructure.maintenance_not_in_progress": "conflict",
|
|
961
962
|
"backup.not_found": "not_found",
|
|
@@ -1038,6 +1039,7 @@ const storageStates = [
|
|
|
1038
1039
|
"blocked",
|
|
1039
1040
|
"unknown"
|
|
1040
1041
|
];
|
|
1042
|
+
const runtimeEngineKinds = ["docker", "native"];
|
|
1041
1043
|
const dockerStates = [
|
|
1042
1044
|
"ok",
|
|
1043
1045
|
"unavailable",
|
|
@@ -1078,6 +1080,7 @@ const degradedAgentSchema = z.object({
|
|
|
1078
1080
|
z.object({
|
|
1079
1081
|
status: z.enum(runtimeHealthStates),
|
|
1080
1082
|
database: z.object({ ok: z.boolean() }),
|
|
1083
|
+
engine: z.enum(runtimeEngineKinds),
|
|
1081
1084
|
docker: z.object({
|
|
1082
1085
|
state: z.enum(dockerStates),
|
|
1083
1086
|
lastError: z.string().nullable(),
|
|
@@ -2412,6 +2415,7 @@ const registryUnavailableSchema = z.object({
|
|
|
2412
2415
|
detail: z.string().nullable()
|
|
2413
2416
|
}).meta({ id: "RegistryUnavailable" });
|
|
2414
2417
|
const hostOperationsAvailabilities = ["enabled", "disabled"];
|
|
2418
|
+
const backupsAvailabilities = ["enabled", "unavailable"];
|
|
2415
2419
|
const installedImageSchema = z.string().regex(pinnedPlatformImagePattern).nullable();
|
|
2416
2420
|
z.object({
|
|
2417
2421
|
version: z.string(),
|
|
@@ -2425,6 +2429,7 @@ z.object({
|
|
|
2425
2429
|
expectedScriptsVersion: z.string(),
|
|
2426
2430
|
imagePrefix: z.string(),
|
|
2427
2431
|
hostOperations: z.enum(hostOperationsAvailabilities),
|
|
2432
|
+
backups: z.enum(backupsAvailabilities),
|
|
2428
2433
|
operations: z.array(hostOperationSchema)
|
|
2429
2434
|
}).meta({ id: "Platform" });
|
|
2430
2435
|
const keyVersionSchema = z.int().positive();
|
|
@@ -2471,10 +2476,15 @@ const hostPointSchema = z.object({
|
|
|
2471
2476
|
memoryUsedBytesAvg: byteCountSchema,
|
|
2472
2477
|
memoryUsedBytesMax: byteCountSchema,
|
|
2473
2478
|
memoryTotalBytes: byteCountSchema,
|
|
2474
|
-
load1Avg: z.number().nonnegative(),
|
|
2479
|
+
load1Avg: z.number().nonnegative().nullable(),
|
|
2475
2480
|
diskRootUsedRatio: hostRatioSchema.nullable(),
|
|
2476
2481
|
diskDataUsedRatio: hostRatioSchema.nullable(),
|
|
2477
|
-
diskAgentsUsedRatio: hostRatioSchema.nullable()
|
|
2482
|
+
diskAgentsUsedRatio: hostRatioSchema.nullable(),
|
|
2483
|
+
gpuUtilRatioAvg: hostRatioSchema.nullable(),
|
|
2484
|
+
gpuUtilRatioMax: hostRatioSchema.nullable(),
|
|
2485
|
+
gpuMemoryUsedBytesAvg: byteCountSchema.nullable(),
|
|
2486
|
+
gpuMemoryUsedBytesMax: byteCountSchema.nullable(),
|
|
2487
|
+
gpuMemoryTotalBytes: byteCountSchema.nullable()
|
|
2478
2488
|
}).meta({ id: "HostPoint" });
|
|
2479
2489
|
const containerPointSchema = z.object({
|
|
2480
2490
|
ts: instantSchema,
|