@highstate/restic 0.9.7 → 0.9.9
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 +9 -2
- package/dist/index.js.map +1 -1
- package/dist/repo/index.js +20 -9
- package/dist/repo/index.js.map +1 -1
- package/package.json +9 -8
- package/src/job-pair.ts +13 -2
- package/src/repo/index.ts +23 -9
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"sourceHashes": {
|
|
3
|
-
"./dist/index.js": "
|
|
4
|
-
"./dist/repo/index.js": "
|
|
3
|
+
"./dist/index.js": "c96d87f5af13bd3c2cd640c998c5e2cec3133ea57f019677aa4f0c82f4584767",
|
|
4
|
+
"./dist/repo/index.js": "29dd629faeb64ae2ca56f68dbd2142733bcdb13f8903b64649779937c0bb3095"
|
|
5
5
|
}
|
|
6
6
|
}
|
package/dist/index.js
CHANGED
|
@@ -6404,10 +6404,15 @@ import {
|
|
|
6404
6404
|
} from "@highstate/k8s";
|
|
6405
6405
|
import {
|
|
6406
6406
|
ComponentResource,
|
|
6407
|
+
getUnitInstanceName,
|
|
6407
6408
|
normalize,
|
|
6408
6409
|
output
|
|
6409
6410
|
} from "@highstate/pulumi";
|
|
6410
6411
|
|
|
6412
|
+
// ../contract/dist/index.js
|
|
6413
|
+
import { mapValues as mapValues3 } from "remeda";
|
|
6414
|
+
import { mapValues as mapValues2 } from "remeda";
|
|
6415
|
+
|
|
6411
6416
|
// ../../node_modules/@sinclair/typebox/build/esm/type/guard/value.mjs
|
|
6412
6417
|
var value_exports = {};
|
|
6413
6418
|
__export(value_exports, {
|
|
@@ -9021,6 +9026,7 @@ var Type = type_exports2;
|
|
|
9021
9026
|
|
|
9022
9027
|
// ../contract/dist/index.js
|
|
9023
9028
|
var import_ajv = __toESM(require_ajv(), 1);
|
|
9029
|
+
import { isNonNullish, mapValues, pickBy } from "remeda";
|
|
9024
9030
|
var boundaryInput = Symbol("boundaryInput");
|
|
9025
9031
|
function text(strings, ...values) {
|
|
9026
9032
|
const stringValues = values.map(String);
|
|
@@ -9150,7 +9156,7 @@ var BackupJobPair = class extends ComponentResource {
|
|
|
9150
9156
|
{
|
|
9151
9157
|
metadata: mapMetadata(args2, `${name}-backup-credentials`),
|
|
9152
9158
|
stringData: {
|
|
9153
|
-
password: args2.
|
|
9159
|
+
password: args2.backupPassword,
|
|
9154
9160
|
"rclone.conf": args2.resticRepo.rcloneConfig
|
|
9155
9161
|
}
|
|
9156
9162
|
},
|
|
@@ -9158,6 +9164,7 @@ var BackupJobPair = class extends ComponentResource {
|
|
|
9158
9164
|
);
|
|
9159
9165
|
});
|
|
9160
9166
|
const environment = output(args).apply((args2) => {
|
|
9167
|
+
const repositoryPath = args2.resticRepo.pathPattern.replace(/\$clusterName/g, args2.cluster.name).replace(/\$appName/g, name).replace(/\$unitName/g, getUnitInstanceName());
|
|
9161
9168
|
return {
|
|
9162
9169
|
alpine: {
|
|
9163
9170
|
packages: ["rclone"]
|
|
@@ -9180,7 +9187,7 @@ var BackupJobPair = class extends ComponentResource {
|
|
|
9180
9187
|
]
|
|
9181
9188
|
},
|
|
9182
9189
|
environment: {
|
|
9183
|
-
RESTIC_REPOSITORY: `rclone:${args2.resticRepo.remoteName}:${
|
|
9190
|
+
RESTIC_REPOSITORY: `rclone:${args2.resticRepo.remoteName}:${repositoryPath}`,
|
|
9184
9191
|
RESTIC_PASSWORD_FILE: "/credentials/password",
|
|
9185
9192
|
RESTIC_HOSTNAME: "default",
|
|
9186
9193
|
RCLONE_CONFIG: "/credentials/rclone.conf",
|