@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@highstate/restic",
3
- "version": "0.9.9",
3
+ "version": "0.9.10",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -20,15 +20,15 @@
20
20
  "build": "highstate build"
21
21
  },
22
22
  "dependencies": {
23
- "@highstate/common": "^0.9.9",
24
- "@highstate/k8s": "^0.9.9",
25
- "@highstate/library": "^0.9.9",
26
- "@highstate/pulumi": "^0.9.9",
23
+ "@highstate/common": "^0.9.10",
24
+ "@highstate/k8s": "^0.9.10",
25
+ "@highstate/library": "^0.9.10",
26
+ "@highstate/pulumi": "^0.9.10",
27
27
  "@pulumi/kubernetes": "^4.18.0",
28
28
  "remeda": "^2.21.0"
29
29
  },
30
30
  "devDependencies": {
31
- "@highstate/cli": "^0.9.9"
31
+ "@highstate/cli": "^0.9.10"
32
32
  },
33
- "gitHead": "1c04a713fa1bb7c0231e5e6d0537709097bb0e8e"
33
+ "gitHead": "aacf8837fdf40f2bb2f83d4c11b35a358e26ec33"
34
34
  }
package/src/job-pair.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  import type { k8s, restic } from "@highstate/library"
2
2
  import type { InputL34Endpoint } from "@highstate/common"
3
- import { batch, core } from "@pulumi/kubernetes"
3
+ import { batch } from "@pulumi/kubernetes"
4
4
  import {
5
5
  createScriptContainer,
6
6
  CronJob,
7
7
  Job,
8
- mapMetadata,
9
8
  ScriptBundle,
9
+ Secret,
10
10
  type CommonArgs,
11
11
  type Container,
12
12
  type ScriptDistribution,
@@ -105,7 +105,7 @@ export class BackupJobPair extends ComponentResource {
105
105
  /**
106
106
  * The credentials used to access the repository and encrypt the backups.
107
107
  */
108
- readonly credentials: Output<core.v1.Secret>
108
+ readonly credentials: Output<Secret>
109
109
 
110
110
  /**
111
111
  * The script bundle used by the backup and restore jobs.
@@ -130,10 +130,11 @@ export class BackupJobPair extends ComponentResource {
130
130
  super("highstate:restic:BackupJobPair", name, args, opts)
131
131
 
132
132
  this.credentials = output(args).apply(args => {
133
- return new core.v1.Secret(
133
+ return Secret.create(
134
134
  `${name}-backup-credentials`,
135
135
  {
136
- metadata: mapMetadata(args, `${name}-backup-credentials`),
136
+ namespace: args.namespace,
137
+ cluster: args.cluster,
137
138
 
138
139
  stringData: {
139
140
  password: args.backupPassword,
@@ -235,6 +236,8 @@ export class BackupJobPair extends ComponentResource {
235
236
  main: "restore.sh",
236
237
  bundle: this.scriptBundle,
237
238
  }),
239
+
240
+ backoffLimit: 2,
238
241
  },
239
242
  { ...opts, parent: this },
240
243
  )
@@ -259,12 +262,7 @@ export class BackupJobPair extends ComponentResource {
259
262
 
260
263
  jobTemplate: {
261
264
  spec: {
262
- backoffLimit: 1,
263
- template: {
264
- spec: {
265
- restartPolicy: "Never",
266
- },
267
- },
265
+ backoffLimit: 2,
268
266
  },
269
267
  },
270
268
  },