@highstate/library 0.9.37 → 0.11.3
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/highstate.library.msgpack +0 -0
- package/dist/index.js +33 -15
- package/dist/index.js.map +1 -1
- package/package.json +13 -11
- package/src/databases/mariadb.ts +7 -0
- package/src/databases/mongodb.ts +7 -0
- package/src/databases/postgresql.ts +7 -0
- package/src/k8s/apps/code-server.ts +1 -1
- package/src/k8s/apps/grocy.ts +1 -1
- package/src/k8s/apps/mariadb.ts +1 -1
- package/src/k8s/apps/maybe.ts +1 -1
- package/src/k8s/apps/mongodb.ts +1 -1
- package/src/k8s/apps/postgresql.ts +1 -1
- package/src/k8s/apps/workload.ts +5 -5
- package/src/wireguard.ts +8 -12
|
Binary file
|
package/dist/index.js
CHANGED
|
@@ -1226,7 +1226,11 @@ var existingMariadb = defineUnit({
|
|
|
1226
1226
|
path: "units/databases/existing-mariadb"
|
|
1227
1227
|
},
|
|
1228
1228
|
meta: {
|
|
1229
|
-
description: `The existing MariaDB database or virtual database behind it
|
|
1229
|
+
description: `The existing MariaDB database or virtual database behind it.`,
|
|
1230
|
+
title: "Existing MariaDB Database",
|
|
1231
|
+
icon: "simple-icons:mariadb",
|
|
1232
|
+
secondaryIcon: "mdi:database",
|
|
1233
|
+
category: "Databases"
|
|
1230
1234
|
}
|
|
1231
1235
|
});
|
|
1232
1236
|
var mongodbEntity = defineEntity({
|
|
@@ -1250,7 +1254,11 @@ var existingMongodb = defineUnit({
|
|
|
1250
1254
|
path: "units/databases/existing-mongodb"
|
|
1251
1255
|
},
|
|
1252
1256
|
meta: {
|
|
1253
|
-
description: `The existing MongoDB database or virtual database behind it
|
|
1257
|
+
description: `The existing MongoDB database or virtual database behind it.`,
|
|
1258
|
+
title: "Existing MongoDB Database",
|
|
1259
|
+
icon: "simple-icons:mongodb",
|
|
1260
|
+
secondaryIcon: "mdi:database",
|
|
1261
|
+
category: "Databases"
|
|
1254
1262
|
}
|
|
1255
1263
|
});
|
|
1256
1264
|
var postgresqlEntity = defineEntity({
|
|
@@ -1274,7 +1282,11 @@ var existingPostgresql = defineUnit({
|
|
|
1274
1282
|
path: "units/databases/existing-postgresql"
|
|
1275
1283
|
},
|
|
1276
1284
|
meta: {
|
|
1277
|
-
description: `The existing PostgreSQL database or virtual database behind it
|
|
1285
|
+
description: `The existing PostgreSQL database or virtual database behind it.`,
|
|
1286
|
+
title: "Existing PostgreSQL Database",
|
|
1287
|
+
icon: "simple-icons:postgresql",
|
|
1288
|
+
secondaryIcon: "mdi:database",
|
|
1289
|
+
category: "Databases"
|
|
1278
1290
|
}
|
|
1279
1291
|
});
|
|
1280
1292
|
|
|
@@ -2195,7 +2207,7 @@ var codeServer = defineUnit({
|
|
|
2195
2207
|
...pick(sharedArgs2, ["fqdn"])
|
|
2196
2208
|
},
|
|
2197
2209
|
secrets: {
|
|
2198
|
-
...pick(sharedSecrets2, ["
|
|
2210
|
+
...pick(sharedSecrets2, ["backupKey"]),
|
|
2199
2211
|
password: z.string().optional(),
|
|
2200
2212
|
sudoPassword: z.string().optional()
|
|
2201
2213
|
},
|
|
@@ -2222,7 +2234,7 @@ var grocy = defineUnit({
|
|
|
2222
2234
|
...pick(sharedArgs2, ["fqdn"])
|
|
2223
2235
|
},
|
|
2224
2236
|
secrets: {
|
|
2225
|
-
...pick(sharedSecrets2, ["
|
|
2237
|
+
...pick(sharedSecrets2, ["backupKey"])
|
|
2226
2238
|
},
|
|
2227
2239
|
inputs: {
|
|
2228
2240
|
...pick(sharedInputs2, ["k8sCluster", "accessPoint"]),
|
|
@@ -2283,7 +2295,7 @@ var mariadb = defineUnit({
|
|
|
2283
2295
|
...pick(sharedArgs2, ["external"])
|
|
2284
2296
|
},
|
|
2285
2297
|
secrets: {
|
|
2286
|
-
...pick(sharedSecrets2, ["rootPassword", "
|
|
2298
|
+
...pick(sharedSecrets2, ["rootPassword", "backupKey"])
|
|
2287
2299
|
},
|
|
2288
2300
|
inputs: {
|
|
2289
2301
|
...pick(sharedInputs2, ["k8sCluster"]),
|
|
@@ -2335,7 +2347,7 @@ var maybe = defineUnit({
|
|
|
2335
2347
|
...pick(sharedArgs2, ["fqdn"])
|
|
2336
2348
|
},
|
|
2337
2349
|
secrets: {
|
|
2338
|
-
...pick(sharedSecrets2, ["
|
|
2350
|
+
...pick(sharedSecrets2, ["backupKey"]),
|
|
2339
2351
|
postgresqlPassword: z.string().optional(),
|
|
2340
2352
|
secretKey: z.string().optional()
|
|
2341
2353
|
},
|
|
@@ -2358,7 +2370,7 @@ var mongodb = defineUnit({
|
|
|
2358
2370
|
...pick(sharedArgs2, ["external"])
|
|
2359
2371
|
},
|
|
2360
2372
|
secrets: {
|
|
2361
|
-
...pick(sharedSecrets2, ["rootPassword", "
|
|
2373
|
+
...pick(sharedSecrets2, ["rootPassword", "backupKey"])
|
|
2362
2374
|
},
|
|
2363
2375
|
inputs: {
|
|
2364
2376
|
...pick(sharedInputs2, ["k8sCluster"]),
|
|
@@ -2410,7 +2422,7 @@ var postgresql = defineUnit({
|
|
|
2410
2422
|
...pick(sharedArgs2, ["external"])
|
|
2411
2423
|
},
|
|
2412
2424
|
secrets: {
|
|
2413
|
-
...pick(sharedSecrets2, ["rootPassword", "
|
|
2425
|
+
...pick(sharedSecrets2, ["rootPassword", "backupKey"])
|
|
2414
2426
|
},
|
|
2415
2427
|
inputs: {
|
|
2416
2428
|
...pick(sharedInputs2, ["k8sCluster"]),
|
|
@@ -2737,13 +2749,13 @@ var workload = defineUnit({
|
|
|
2737
2749
|
|
|
2738
2750
|
If not provided and requested, a random password will be generated.`),
|
|
2739
2751
|
/**
|
|
2740
|
-
* The
|
|
2752
|
+
* The key for the backup.
|
|
2741
2753
|
*
|
|
2742
|
-
* If not provided and requested, a random
|
|
2754
|
+
* If not provided and requested, a random key will be generated.
|
|
2743
2755
|
*/
|
|
2744
|
-
|
|
2756
|
+
backupKey: $addArgumentDescription(z.string().optional(), `The key for the backup.
|
|
2745
2757
|
|
|
2746
|
-
If not provided and requested, a random
|
|
2758
|
+
If not provided and requested, a random key will be generated.`),
|
|
2747
2759
|
/**
|
|
2748
2760
|
* The secret configuration for the workload.
|
|
2749
2761
|
*
|
|
@@ -2769,7 +2781,7 @@ var workload = defineUnit({
|
|
|
2769
2781
|
},
|
|
2770
2782
|
outputs: {
|
|
2771
2783
|
namespace: namespaceEntity,
|
|
2772
|
-
|
|
2784
|
+
workload: exposableWorkloadEntity,
|
|
2773
2785
|
service: serviceEntity
|
|
2774
2786
|
},
|
|
2775
2787
|
meta: {
|
|
@@ -4201,7 +4213,13 @@ var sharedPeerArgs = {
|
|
|
4201
4213
|
/**
|
|
4202
4214
|
* The port to listen on.
|
|
4203
4215
|
*/
|
|
4204
|
-
listenPort: z.number().optional()
|
|
4216
|
+
listenPort: z.number().optional(),
|
|
4217
|
+
/**
|
|
4218
|
+
* The keepalive interval in seconds that will be used by all nodes connecting to this peer.
|
|
4219
|
+
*
|
|
4220
|
+
* If set to 0, keepalive is disabled.
|
|
4221
|
+
*/
|
|
4222
|
+
persistentKeepalive: z.number().int().nonnegative().default(0)
|
|
4205
4223
|
};
|
|
4206
4224
|
var sharedPeerInputs = {
|
|
4207
4225
|
/**
|