@highstate/restic 0.9.9 → 0.9.10
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.manifest.json +2 -2
- package/dist/index.js +11 -14
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
- package/src/job-pair.ts +9 -11
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"sourceHashes": {
|
|
3
|
-
"./dist/index.js": "
|
|
4
|
-
"./dist/repo/index.js": "
|
|
3
|
+
"./dist/index.js": "1610a5acb7fc1e922d3121c831b882ff287ac0cf2749bceefdb69d39f39201ce",
|
|
4
|
+
"./dist/repo/index.js": "710d064bd08ed46062ec95e3181eef9edcce42e7db06af5011a1dafc94f2209a"
|
|
5
5
|
}
|
|
6
6
|
}
|
package/dist/index.js
CHANGED
|
@@ -4508,7 +4508,7 @@ var require_core2 = __commonJS({
|
|
|
4508
4508
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4509
4509
|
var id_1 = require_id();
|
|
4510
4510
|
var ref_1 = require_ref();
|
|
4511
|
-
var
|
|
4511
|
+
var core = [
|
|
4512
4512
|
"$schema",
|
|
4513
4513
|
"$id",
|
|
4514
4514
|
"$defs",
|
|
@@ -4518,7 +4518,7 @@ var require_core2 = __commonJS({
|
|
|
4518
4518
|
id_1.default,
|
|
4519
4519
|
ref_1.default
|
|
4520
4520
|
];
|
|
4521
|
-
exports.default =
|
|
4521
|
+
exports.default = core;
|
|
4522
4522
|
}
|
|
4523
4523
|
});
|
|
4524
4524
|
|
|
@@ -6394,13 +6394,13 @@ var require_ajv = __commonJS({
|
|
|
6394
6394
|
});
|
|
6395
6395
|
|
|
6396
6396
|
// src/job-pair.ts
|
|
6397
|
-
import { batch
|
|
6397
|
+
import { batch } from "@pulumi/kubernetes";
|
|
6398
6398
|
import {
|
|
6399
6399
|
createScriptContainer,
|
|
6400
6400
|
CronJob,
|
|
6401
6401
|
Job,
|
|
6402
|
-
|
|
6403
|
-
|
|
6402
|
+
ScriptBundle,
|
|
6403
|
+
Secret
|
|
6404
6404
|
} from "@highstate/k8s";
|
|
6405
6405
|
import {
|
|
6406
6406
|
ComponentResource,
|
|
@@ -9151,10 +9151,11 @@ var BackupJobPair = class extends ComponentResource {
|
|
|
9151
9151
|
this.name = name;
|
|
9152
9152
|
this.opts = opts;
|
|
9153
9153
|
this.credentials = output(args).apply((args2) => {
|
|
9154
|
-
return
|
|
9154
|
+
return Secret.create(
|
|
9155
9155
|
`${name}-backup-credentials`,
|
|
9156
9156
|
{
|
|
9157
|
-
|
|
9157
|
+
namespace: args2.namespace,
|
|
9158
|
+
cluster: args2.cluster,
|
|
9158
9159
|
stringData: {
|
|
9159
9160
|
password: args2.backupPassword,
|
|
9160
9161
|
"rclone.conf": args2.resticRepo.rcloneConfig
|
|
@@ -9236,7 +9237,8 @@ var BackupJobPair = class extends ComponentResource {
|
|
|
9236
9237
|
...args2.restoreContainer,
|
|
9237
9238
|
main: "restore.sh",
|
|
9238
9239
|
bundle: this.scriptBundle
|
|
9239
|
-
})
|
|
9240
|
+
}),
|
|
9241
|
+
backoffLimit: 2
|
|
9240
9242
|
},
|
|
9241
9243
|
{ ...opts, parent: this }
|
|
9242
9244
|
);
|
|
@@ -9256,12 +9258,7 @@ var BackupJobPair = class extends ComponentResource {
|
|
|
9256
9258
|
concurrencyPolicy: "Forbid",
|
|
9257
9259
|
jobTemplate: {
|
|
9258
9260
|
spec: {
|
|
9259
|
-
backoffLimit:
|
|
9260
|
-
template: {
|
|
9261
|
-
spec: {
|
|
9262
|
-
restartPolicy: "Never"
|
|
9263
|
-
}
|
|
9264
|
-
}
|
|
9261
|
+
backoffLimit: 2
|
|
9265
9262
|
}
|
|
9266
9263
|
}
|
|
9267
9264
|
},
|