Skip to content

Commit 4d7f468

Browse files
authored
Merge pull request #13 from aphp/dev
Merge dev into Main
2 parents c895a54 + fb5cd16 commit 4d7f468

49 files changed

Lines changed: 801 additions & 629 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/chart-ci.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,13 @@ on:
77
- "dev"
88
- "main"
99

10+
permissions:
11+
contents: write
12+
security-events: write
13+
1014
jobs:
1115
aphp-chart-ci-workflow:
12-
uses: aphp/ci-workflows/.github/workflows/chart-ci.yml@main
16+
uses: aphp/ci-workflows/.github/workflows/chart-ci.yml@dev
1317
with:
1418
kubernetes-version: "1.24.2"
1519
chart-dir: "charts/redcap"

NOTICE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
This software contains the following dependencies developed by Broadcom :
22

33
- Helm Charts:
4-
- mysql : https://github.com/bitnami/charts/tree/main/bitnami/mysql
4+
- mariadb : https://github.com/CloudPirates-io/helm-charts/tree/main/charts/mariadb
55
- logstash : https://github.com/bitnami/charts/tree/main/bitnami/logstash
66

77
Those dependencies are present in the "bitnami/charts" github repository provided by Broadcom under the Apache 2.0 license,

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![redcap-helmchart-ci](https://github.com/aphp/redcap-helmchart/actions/workflows/chart-ci.yaml/badge.svg)](https://github.com/aphp/redcap-helmchart/actions/workflows/chart-ci.yaml)
44
[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/aphp-redcap)](https://artifacthub.io/packages/search?repo=aphp-redcap)
55

6-
## Presentation
6+
## Presentation
77

88
This repository hosts the REDCap Helm Chart developed by the Greater Paris University Hospitals (`APHP` in French - Assistance Publique des Hôpitaux de Paris). This Chart allows for a cloud-native and cloud-agnostic deployment of REDCap, a secure web application for building and managing online surveys and databases.
99

@@ -21,7 +21,7 @@ The architecture of the REDCap stack deployed by this Chart is as follows :
2121
A minimal setup of this stack includes :
2222
- The HTTPd component
2323
- The PHP FPM Server hosting the REDCap Application
24-
- The MySQL Database used by REDCap
24+
- The MariaDB Database used by REDCap
2525

2626
On top of that, you can also choose to deploy :
2727
- A Backup Cronjob, that can generate an archive containing a database dump, a dump of the `edocs` folder, and a dump of the folder containing the REDCap Application.
@@ -45,7 +45,7 @@ Here are a few important notions to keep in mind to efficiently manage a REDCap
4545

4646
If you choose to automatically install REDCap using your community credentials with this chart, an Kubernetes Job called `init-job` will be automatically fired during the chart's installation process:
4747
- The `StartupPrope` will call the `install.php` or `upgrade.php` script (depending if you're installing REDCap from scratch or upgrading from an existing installation) with the query parameter `auto=1`
48-
- The `ReadinessProbe` will call a MySql script allowing to configure REDCap with the following parameter, extracted from the Chart values :
48+
- The `ReadinessProbe` will call a MariaDB script allowing to configure REDCap with the following parameter, extracted from the Chart values :
4949
- REDCap Base URL
5050
- Institution Name
5151
- Organization Name

charts/redcap/Chart.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
dependencies:
2-
- name: mysql
3-
repository: https://charts.bitnami.com/bitnami
4-
version: 13.0.2
2+
- name: mariadb
3+
repository: oci://registry-1.docker.io/cloudpirates
4+
version: 0.8.0
55
- name: logstash
66
repository: https://charts.bitnami.com/bitnami
77
version: 7.0.4
8-
digest: sha256:9acead3f00befe50145d27d120a6795203cc65d72bc6578d1903642884fe1a48
9-
generated: "2025-06-19T15:34:43.900600074+02:00"
8+
digest: sha256:f08d201367526ff2189bcba7f2fa3ec712a842dabbd716490414560faeb7b935
9+
generated: "2025-12-08T16:16:04.913596174+01:00"

charts/redcap/Chart.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
name: redcap
3-
version: 1.4.5
4-
appVersion: 14.5.25
3+
version: 1.5.0
4+
appVersion: 15.0.27
55
kubeVersion: '>= 1.24.0-0'
66
description: A Helm chart to deploy REDCap on a Kubernetes cluster.
77
type: application
@@ -14,10 +14,10 @@ home: https://www.project-redcap.org/
1414
sources:
1515
- https://github.com/aphp/redcap-helmchart
1616
dependencies:
17-
- condition: mysql.enabled
18-
name: mysql
19-
repository: https://charts.bitnami.com/bitnami
20-
version: 13.0.2
17+
- condition: mariadb.enabled
18+
name: mariadb
19+
repository: oci://registry-1.docker.io/cloudpirates
20+
version: 0.8.0
2121
- condition: audit.enabled
2222
name: logstash
2323
alias: audit

charts/redcap/README.md

Lines changed: 54 additions & 41 deletions
Large diffs are not rendered by default.

charts/redcap/charts/.helm_ls_cache/mysql/templates/secondary/configmap.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ Copyright Broadcom, Inc. All Rights Reserved.
33
SPDX-License-Identifier: APACHE-2.0
44
*/}}
55

6-
{{- if (include "mysql.secondary.createConfigmap" .) }}
6+
{{- if (include "mariadb.secondary.createConfigmap" .) }}
77
apiVersion: v1
88
kind: ConfigMap
99
metadata:
10-
name: {{ include "mysql.secondary.fullname" . }}
10+
name: {{ include "mariadb.secondary.fullname" . }}
1111
namespace: {{ include "common.names.namespace" . | quote }}
1212
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
13-
app.kubernetes.io/part-of: mysql
13+
app.kubernetes.io/part-of: mariadb
1414
app.kubernetes.io/component: secondary
1515
{{- if .Values.commonAnnotations }}
1616
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}

charts/redcap/charts/.helm_ls_cache/mysql/templates/tls-secret.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ SPDX-License-Identifier: APACHE-2.0
55

66
{{- $secretName := printf "%s-crt" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }}
77
{{- if and .Values.tls.enabled (eq .Values.tls.autoGenerated.engine "helm") }}
8-
{{- $ca := genCA "mysql-ca" 365 }}
8+
{{- $ca := genCA "mariadb-ca" 365 }}
99
{{- $releaseNamespace := include "common.names.namespace" . }}
1010
{{- $clusterDomain := .Values.clusterDomain }}
11-
{{- $primaryServiceName := include "mysql.primary.fullname" . }}
12-
{{- $secondaryServiceName := include "mysql.secondary.fullname" . }}
11+
{{- $primaryServiceName := include "mariadb.primary.fullname" . }}
12+
{{- $secondaryServiceName := include "mariadb.secondary.fullname" . }}
1313
{{- $headlessServiceName := printf "%s-headless" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }}
1414
{{- $altNames := list (printf "*.%s.%s.svc.%s" $primaryServiceName $secondaryServiceName $releaseNamespace $clusterDomain) (printf "%s.%s.svc.%s" $releaseNamespace $clusterDomain) (printf "%s.%s.svc.%s" $secondaryServiceName $releaseNamespace $clusterDomain) (printf "*.%s.%s.svc.%s" $headlessServiceName $releaseNamespace $clusterDomain) (printf "%s.%s.svc.%s" $headlessServiceName $releaseNamespace $clusterDomain) (include "common.names.fullname" .) "localhost" "127.0.0.1" }}
1515
{{- $cert := genSignedCert $primaryServiceName nil $altNames 365 $ca }}
@@ -19,8 +19,8 @@ metadata:
1919
name: {{ $secretName }}
2020
namespace: {{ include "common.names.namespace" . | quote }}
2121
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
22-
app.kubernetes.io/part-of: mysql
23-
app.kubernetes.io/component: mysql
22+
app.kubernetes.io/part-of: mariadb
23+
app.kubernetes.io/component: mariadb
2424
{{- if .Values.commonAnnotations }}
2525
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
2626
{{- end }}
@@ -36,8 +36,8 @@ metadata:
3636
name: {{ $secretName }}
3737
namespace: {{ include "common.names.namespace" . | quote }}
3838
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
39-
app.kubernetes.io/part-of: mysql
40-
app.kubernetes.io/component: mysql
39+
app.kubernetes.io/part-of: mariadb
40+
app.kubernetes.io/component: mariadb
4141
{{- if .Values.commonAnnotations }}
4242
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
4343
{{- end }}

charts/redcap/charts/.helm_ls_cache/mysql/templates/update-password/previous-secret.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Copyright Broadcom, Inc. All Rights Reserved.
33
SPDX-License-Identifier: APACHE-2.0
44
*/}}
55

6-
{{- if and .Values.passwordUpdateJob.enabled (eq ( include "mysql.createPreviousSecret" . ) "true") }}
6+
{{- if and .Values.passwordUpdateJob.enabled (eq ( include "mariadb.createPreviousSecret" . ) "true") }}
77
{{- $rootPassword := .Values.passwordUpdateJob.previousPasswords.rootPassword }}
88
{{- $password := .Values.passwordUpdateJob.previousPasswords.password }}
99
{{- $replicationPassword := .Values.passwordUpdateJob.previousPasswords.replicationPassword }}
@@ -13,17 +13,17 @@ metadata:
1313
name: {{ printf "%s-previous-secret" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }}
1414
namespace: {{ include "common.names.namespace" . | quote }}
1515
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
16-
app.kubernetes.io/part-of: mysql
16+
app.kubernetes.io/part-of: mariadb
1717
{{- $defaultAnnotations := dict "helm.sh/hook" "pre-upgrade" "helm.sh/hook-delete-policy" "hook-succeeded" }}
1818
{{- $annotations := include "common.tplvalues.merge" ( dict "values" ( list .Values.commonAnnotations $defaultAnnotations ) "context" . ) }}
1919
annotations: {{- include "common.tplvalues.render" ( dict "value" $annotations "context" $ ) | nindent 4 }}
2020
type: Opaque
2121
data:
22-
mysql-root-password: {{ required "The previous root password is required!" $rootPassword | b64enc | quote }}
22+
mariadb-root-password: {{ required "The previous root password is required!" $rootPassword | b64enc | quote }}
2323
{{- if .Values.auth.username }}
24-
mysql-password: {{ required "The previous user password is required!" $password | b64enc | quote }}
24+
mariadb-password: {{ required "The previous user password is required!" $password | b64enc | quote }}
2525
{{- end }}
2626
{{- if eq .Values.architecture "replication" }}
27-
mysql-replication-password: {{ required "The previous replication password is required!" $replicationPassword | b64enc | quote }}
27+
mariadb-replication-password: {{ required "The previous replication password is required!" $replicationPassword | b64enc | quote }}
2828
{{- end }}
2929
{{- end }}
31.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)