Skip to content

Commit 13139aa

Browse files
update restic config
1 parent da2e736 commit 13139aa

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

apps/linkding/components/restic-postgres/kustomization.yaml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ resources:
55
- ../../../../infra/restic-postgres
66
configMapGenerator:
77
- name: "linkding-restic-postgres"
8+
behavior: "merge"
89
literals:
910
- "RETENTION_DAYS=7"
1011
- "RETENTION_WEEKS=4"
11-
- "RETENTION_MONTHS=6"
12+
- "RETENTION_MONTHS=12"
1213
- "RESTIC_BACKUP_ID=linkding-postgres"
13-
- "POSTGRES_SERVER=postgres"
1414
patches:
1515
- target:
1616
kind: "CronJob"
@@ -33,13 +33,16 @@ patches:
3333
path: "/spec/schedule"
3434
value: "5 6 * * *"
3535
- op: "replace"
36-
path: "/spec/jobTemplate/spec/template/spec/containers/0/env/0/valueFrom/secretKeyRef/name"
37-
value: "linkding-postgres"
38-
- op: "add"
39-
path: "/spec/jobTemplate/spec/template/spec/containers/0/envFrom/-"
36+
path: "/spec/jobTemplate/spec/template/spec/containers/0/env/0/valueFrom/secretKeyRef"
4037
value:
41-
secretRef:
42-
name: "linkding-postgres"
38+
name: "linkding-postgres"
39+
key: "password"
40+
optional: true
41+
# - op: "add"
42+
# path: "/spec/jobTemplate/spec/template/spec/containers/0/envFrom/-"
43+
# value:
44+
# secretRef:
45+
# name: "linkding-postgres"
4346
- target:
4447
kind: "CronJob"
4548
name: "restic-postgres-prune"

0 commit comments

Comments
 (0)