Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
k8s-postgresql
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
185814b2
authored
2023-02-02 18:39:51 -0600
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Try to fix direct url restore.
1 parent
0d6151e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
charts/postgresql-rclone/templates/job-restore.yaml
charts/postgresql-rclone/templates/job-restore.yaml
View file @
185814b
...
...
@@ -56,18 +56,20 @@ spec:
env
:
{{
- if .Values.rclone.crypt.enabled
}}
-
name
:
RCLONE_CRYPT_REMOTE
{{
- else
}}
-
name
:
RCLONE_S3_REMOTE
{{
- end
}}
{{
- if .Values.restore.url
}}
{{
- if .Values.restore.url
}}
value
:
"
:{{
.Values.restore.url
}}"
{{
- else
}}
{{
-
else
}}
value
:
"
:s3:$(S3_BUCKET)/$(S3_PREFIX)/last/"
{{
- end
}}
{{
- end
}}
{{
- if .Values.rclone.crypt.enabled
}}
args
:
[
"
copy"
,
"
:crypt:"
,
"
/restores/.work/"
]
{{
- else
}}
args
:
[
"
-v"
,
"
copy"
,
"
$(RCLONE_S3_REMOTE)"
,
"
/restores/.work/"
]
{{
- if .Values.restore.url
}}
args
:
[
"
-v"
,
"
copy"
,
"
:s3:{{
.Values.restore.url
}}"
,
"
/restores/.work/"
]
{{
- else
}}
args
:
[
"
-v"
,
"
copy"
,
"
:s3:$(S3_BUCKET)/$(S3_PREFIX)/last/"
,
"
/restores/.work/"
]
{{
- end
}}
{{
- end
}}
{{
- end
}}
-
name
:
link-latest
...
...
Please
register
or
sign in
to post a comment