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
29648c05
authored
2024-03-07 14:13:45 -0600
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Attempt to deal with failures during restore.
Refs: #BF-11765
1 parent
74f46752
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
charts/postgresql-rclone/templates/job-restore.yaml
helmfiles/bitnami-postgresql-rclone/helmfile.yaml
charts/postgresql-rclone/templates/job-restore.yaml
View file @
29648c0
...
...
@@ -37,6 +37,17 @@ spec:
name
:
{{
include "postgresql-rclone.fullname" .
}}
-rclone
{{
- end
}}
initContainers
:
-
name
:
cleanup-pvc
image
:
"
{{
.Values.bash.image.repository
}}:{{
.Values.bash.image.tag
}}"
imagePullPolicy
:
{{
.Values.bash.image.pullPolicy
}}
volumeMounts
:
-
name
:
restores
mountPath
:
/restores
command
:
-
bash
-
-cx
-
|-
find /restores -delete
{{
- if .Values.rclone.enabled
}}
-
name
:
rclone
image
:
"
{{
.Values.rclone.image.repository
}}:{{
.Values.rclone.image.tag
}}"
...
...
@@ -112,6 +123,8 @@ spec:
-
bash
-
-cx
-
|-
set -- /restores/*
[[ -e $1 ]] || touch /restores/.error
touch /restores/.restored
...
...
helmfiles/bitnami-postgresql-rclone/helmfile.yaml
View file @
29648c0
...
...
@@ -47,6 +47,8 @@ releases:
until [ -f /docker-entrypoint-initdb.d/.restored ]; do
sleep 5
done
if [ -f /docker-entrypoint-initdb.d/.error ]; then exit 1; fi
{{
- range (.Values | get "primary.initContainers" list)
}}
-
{{
. | toYaml | nindent 14
}}
{{
- end
}}
...
...
Please
register
or
sign in
to post a comment