Skip to content

Commit 8446ae9

Browse files
committed
Added custom redcap app rzstore image (curl) and updated docs
1 parent 91c4089 commit 8446ae9

File tree

3 files changed

+53
-37
lines changed

3 files changed

+53
-37
lines changed

charts/redcap/README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,6 @@ helm install redcap aphp-redcap/redcap -f ./examples/basic-install.yaml
168168
| restoreJob.imagePullSecrets | list | `[]` | ImagePullSecret used to pull the images for the restore pod's containers |
169169
| restoreJob.schedule | string | `"0 0 1 1 *"` | Schedule for the restore Cronjob. CronJob resources needs a valid schedule, but this one will never be used since it will always be suspended (see spec.suspend field). |
170170
| restoreJob.archiveName | string | `"redcap-backup.tar.gz"` | Name of the backup archive to restore. |
171-
| restoreJob.redcap.image.repository | string | `"busybox"` | Image repository for the REDCap application restore container. |
172-
| restoreJob.redcap.image.tag | string | `"1"` | Image tag for the REDCap application restore container. |
173-
| restoreJob.redcap.image.pullPolicy | string | `"Always"` | Image pullPolicy for the REDCap application restore container. |
174171
| restoreJob.downloader.image.repository | string | `"rclone/rclone"` | Image repository for the REDCap downloader container. |
175172
| restoreJob.downloader.image.tag | string | `"drime"` | Image tag for the REDCap downloader container. |
176173
| restoreJob.downloader.image.pullPolicy | string | `"Always"` | Image pullPolicy for the REDCap downloader container. |
@@ -181,6 +178,12 @@ helm install redcap aphp-redcap/redcap -f ./examples/basic-install.yaml
181178
| restoreJob.downloader.s3.config.auth.accessKeyID | string | `""` | AccessKeyID needed for authentication on the S3 bucket. |
182179
| restoreJob.downloader.s3.config.auth.secretAccessKey | string | `""` | SecretAccessKey needed for authentication on the S3 bucket. |
183180
| restoreJob.downloader.s3.config.auth.existingSecret | string | `""` | Reference to an existing secret holding the AccessKeyID and SecretAccessKey needed for authentication on the S3 bucket. If set, overrides the AccessKeyID and SecretAccessKey values. |
181+
| restoreJob.file.image.repository | string | `"busybox"` | Image repository for the REDCap application restore container. |
182+
| restoreJob.file.image.tag | string | `"1"` | Image tag for the REDCap files application container. |
183+
| restoreJob.file.image.pullPolicy | string | `"Always"` | Image pullPolicy for the REDCap application restore container. |
184+
| restoreJob.redcap.image.repository | string | `"alpine/curl"` | Image repository for the REDCap application restore container. |
185+
| restoreJob.redcap.image.tag | string | `"8.12.1"` | Image tag for the REDCap application restore container. |
186+
| restoreJob.redcap.image.pullPolicy | string | `"Always"` | Image pullPolicy for the REDCap application restore container. |
184187
| restoreJob.resources | object | `{}` | Resources for backup job's pod. |
185188

186189
### REDCap Audit Log Shipper settings

charts/redcap/templates/cronjobs/restore-cronjob.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ spec:
7373
subPath: backup-download.sh
7474

7575
- name: files-restore
76-
image: "{{ .Values.restoreJob.redcap.image.repository }}:{{ .Values.restoreJob.redcap.image.tag }}"
77-
imagePullPolicy: {{ .Values.restoreJob.redcap.image.pullPolicy }}
76+
image: "{{ .Values.restoreJob.files.image.repository }}:{{ .Values.restoreJob.files.image.tag }}"
77+
imagePullPolicy: {{ .Values.restoreJob.files.image.pullPolicy }}
7878
command:
7979
- "sh"
8080
- "-c"
@@ -133,7 +133,7 @@ spec:
133133

134134

135135
containers:
136-
- name: redcap-update
136+
- name: redcap-restore
137137
image: "{{ .Values.restoreJob.redcap.image.repository }}:{{ .Values.restoreJob.redcap.image.tag }}"
138138
imagePullPolicy: {{ .Values.restoreJob.redcap.image.pullPolicy }}
139139
securityContext:

charts/redcap/values.yaml

Lines changed: 44 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -448,37 +448,6 @@ restoreJob:
448448
# -- Name of the backup archive to restore.
449449
# @section -- REDCap Restore Job's settings
450450
archiveName: "redcap-backup.tar.gz"
451-
redcap:
452-
image:
453-
# -- Image repository for the REDCap application restore container.
454-
# @section -- REDCap Restore Job's settings
455-
repository: "busybox"
456-
# -- Image tag for the REDCap application restore container.
457-
# @section -- REDCap Restore Job's settings
458-
tag: "1"
459-
# -- Image pullPolicy for the REDCap application restore container.
460-
# @section -- REDCap Restore Job's settings
461-
pullPolicy: "Always"
462-
463-
database:
464-
image:
465-
# # -- Image repository for the REDCap database restore container.
466-
# # @section -- REDCap Restore Job's settings
467-
# repository: "bitnamilegacy/MariaDB"
468-
# # -- Image yag for the REDCap application restore container.
469-
# # @section -- REDCap Restore Job's settings
470-
# tag: "9.3.0-debian-12-r1"
471-
# # -- Image pullPolicy for the REDCap application restore container.
472-
# # @section -- REDCap Restore Job's settings
473-
# pullPolicy: "Always"
474-
## @param image.registry MariaDB image registry
475-
registry: docker.io
476-
## @param image.repository MariaDB image repository
477-
repository: mariadb
478-
## @param image.tag MariaDB image tag (immutable tags are recommended)
479-
tag: "12.1.2@sha256:e1bcd6f85781f4a875abefb11c4166c1d79e4237c23de597bf0df81fec225b40"
480-
## @param image.pullPolicy MariaDB image pull policy
481-
imagePullPolicy: Always
482451

483452
downloader:
484453
image:
@@ -519,6 +488,50 @@ restoreJob:
519488
# @section -- REDCap Restore Job's settings
520489
existingSecret: ""
521490

491+
file:
492+
image:
493+
# -- Image repository for the REDCap application restore container.
494+
# @section -- REDCap Restore Job's settings
495+
repository: "busybox"
496+
# -- Image tag for the REDCap files application container.
497+
# @section -- REDCap Restore Job's settings
498+
tag: "1"
499+
# -- Image pullPolicy for the REDCap application restore container.
500+
# @section -- REDCap Restore Job's settings
501+
pullPolicy: "Always"
502+
503+
database:
504+
image:
505+
# # -- Image repository for the REDCap database restore container.
506+
# # @section -- REDCap Restore Job's settings
507+
# repository: "bitnamilegacy/MariaDB"
508+
# # -- Image yag for the REDCap application restore container.
509+
# # @section -- REDCap Restore Job's settings
510+
# tag: "9.3.0-debian-12-r1"
511+
# # -- Image pullPolicy for the REDCap application restore container.
512+
# # @section -- REDCap Restore Job's settings
513+
# pullPolicy: "Always"
514+
## @param image.registry MariaDB image registry
515+
registry: docker.io
516+
## @param image.repository MariaDB image repository
517+
repository: mariadb
518+
## @param image.tag MariaDB image tag (immutable tags are recommended)
519+
tag: "12.1.2@sha256:e1bcd6f85781f4a875abefb11c4166c1d79e4237c23de597bf0df81fec225b40"
520+
## @param image.pullPolicy MariaDB image pull policy
521+
imagePullPolicy: Always
522+
523+
redcap:
524+
image:
525+
# -- Image repository for the REDCap application restore container.
526+
# @section -- REDCap Restore Job's settings
527+
repository: "alpine/curl"
528+
# -- Image tag for the REDCap application restore container.
529+
# @section -- REDCap Restore Job's settings
530+
tag: "8.12.1"
531+
# -- Image pullPolicy for the REDCap application restore container.
532+
# @section -- REDCap Restore Job's settings
533+
pullPolicy: "Always"
534+
522535
# -- Resources for backup job's pod.
523536
# @section -- REDCap Restore Job's settings
524537
resources: {}

0 commit comments

Comments
 (0)