@@ -130,11 +130,53 @@ spec:
130130 volumeMounts :
131131 - name : backup-data
132132 mountPath : /backup-data
133+
134+ - name : init-download-redcap
135+ image : " {{ .Values.restoreJob.redcap.image.repository }}:{{ .Values.restoreJob.redcap.image.tag }}"
136+ imagePullPolicy : {{ .Values.redcap.install.image.pullPolicy }}
137+ securityContext :
138+ allowPrivilegeEscalation : false
139+ readOnlyRootFilesystem : true
140+ runAsUser : 2000
141+ runAsGroup : 2000
142+
143+ env :
144+ - name : REDCAP_INSTALL_PATH
145+ value : " /app/redcap"
146+ - name : REDCAP_VERSION
147+ value : {{ .Values.redcap.install.version }}
148+ - name : REDCAP_COMMUNITY_USERNAME
149+ valueFrom :
150+ secretKeyRef :
151+ name : {{ default (include "redcap.secrets.community.creds.name" .) .Values.redcap.install.communityAuth.existingSecret }}
152+ key : USERNAME
153+ - name : REDCAP_COMMUNITY_PASSWORD
154+ valueFrom :
155+ secretKeyRef :
156+ name : {{ default (include "redcap.secrets.community.creds.name" .) .Values.redcap.install.communityAuth.existingSecret }}
157+ key : PASSWORD
158+
159+ command :
160+ - " sh"
161+ - " -c"
162+ - " /home/curl_user/redcap-install.sh"
163+
164+ volumeMounts :
165+ - name : redcap-archive-cache
166+ mountPath : /tmp/redcap
167+ - name : redcap-app
168+ mountPath : /app/redcap
169+ - name : database-conf
170+ mountPath : /tmp/conf/database.php
171+ subPath : database.php
172+ - name : redcap-install-script
173+ mountPath : /home/curl_user/redcap-install.sh
174+ subPath : redcap-install.sh
133175
134176
135177 containers :
136178 - name : redcap-restore
137- image : " {{ .Values.restoreJob. redcap.image.repository }}:{{ .Values.restoreJob .redcap.image.tag }}"
179+ image : " {{ .Values.redcap.image.repository }}:{{ .Values.redcap.image.tag }}"
138180 imagePullPolicy : {{ .Values.restoreJob.redcap.image.pullPolicy }}
139181 securityContext :
140182 allowPrivilegeEscalation : false
@@ -169,7 +211,6 @@ spec:
169211 - sh
170212 - -c
171213 - >
172- /tmp/scripts/redcap-install.sh &&
173214 /tmp/scripts/redcap-setup.sh &&
174215 /tmp/scripts/redcap-config.sh
175216
0 commit comments