Skip to content

Commit

Permalink
Branch init : redcap chart and basic release action
Browse files Browse the repository at this point in the history
  • Loading branch information
Kévin ZGRZENDEK committed Nov 23, 2024
1 parent 27b966f commit 9f2611c
Show file tree
Hide file tree
Showing 150 changed files with 12,032 additions and 0 deletions.
102 changes: 102 additions & 0 deletions .github/workflows/chart-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
name: Chart CI

on:
push:
branches:
- main
- dev

jobs:
lint-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Helm
uses: azure/setup-helm@v4.2.0
with:
version: v3.14.4

- uses: actions/setup-python@v5
with:
python-version: '3.x'
check-latest: true

- name: Set up chart-testing
uses: helm/chart-testing-action@v2.6.1

- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }})
if [[ -n "$changed" ]]; then
echo "changed=true" >> "$GITHUB_OUTPUT"
fi
- name: Run chart-testing (lint)
if: steps.list-changed.outputs.changed == 'true'
run: ct lint --target-branch ${{ github.event.repository.default_branch }}

- name: Create kind cluster
if: steps.list-changed.outputs.changed == 'true'
uses: helm/kind-action@v1.10.0

- name: Run chart-testing (install)
if: steps.list-changed.outputs.changed == 'true'
run: ct install --target-branch ${{ github.event.repository.default_branch }}

generate-doc:
needs: lint-test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Helm-docs
uses: losisin/helm-docs-github-action@v1.3.3
with:
chart-search-root: ./charts/inception
values-file : ./values.yaml
output-file: ./README.md
template-files: ./README.md.gotpl
sort-values-order: file

- name: Generate values schema json
uses: losisin/helm-values-schema-json-action@v1.5.3
with:
input: ./charts/inception/values.yaml
output: ./charts/inception/values.schema.json


release:
# depending on default permission settings for your org (contents being read-only or read-write for workloads), you will have to add permissions
# see: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token
needs: generate-doc
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Install Helm
uses: azure/setup-helm@v4
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.6.0
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
Empty file added charts/redcap/.gitkeep
Empty file.
9 changes: 9 additions & 0 deletions charts/redcap/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
dependencies:
- name: mysql
repository: https://charts.bitnami.com/bitnami
version: 9.12.3
- name: logstash
repository: https://charts.bitnami.com/bitnami
version: 5.5.6
digest: sha256:28e83fa08458d74a30e4baede88924bcf36afc54cee425a0f47119ce922e4083
generated: "2023-09-25T17:34:18.592860034+02:00"
30 changes: 30 additions & 0 deletions charts/redcap/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
apiVersion: v2
name: redcap
appVersion: 13.1.18
dependencies:
- condition: mysql.enabled
name: mysql
repository: https://charts.bitnami.com/bitnami
version: 12.0.0
- condition: audit.enabled
name: logstash
alias: audit
repository: https://charts.bitnami.com/bitnami
version: 5.5.6
description: A Helm chart to deploy REDCap on a Kubernetes cluster.
home: https://gitlab.eds.aphp.fr/ADM/k8s/charts-and-manifests/redcap
icon: https://www.lib.washington.edu/dataservices/images/REDCaplogo.jpg
maintainers:
- name: Kévin ZGRZENDEK
email: kevin.zgrzendek@aphp.fr
url: https://github.com/kzgrzendek
keywords:
- redcap
- eCRF
- research
- clinical
kubeVersion: '>= 1.24.0-0'
sources:
- https://www.project-redcap.org/
type: application
version: 1.2.2
1 change: 1 addition & 0 deletions charts/redcap/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This Helm chart is intented to be used by Infra Team of the platform Big Data at AP-HP to deploy REDCap application on the Kubernetes Cluster of Big Data Plateforme.
214 changes: 214 additions & 0 deletions charts/redcap/README.md

Large diffs are not rendered by default.

33 changes: 33 additions & 0 deletions charts/redcap/README.md.gotmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{{ template "chart.header" . }}

{{ template "chart.badgesSection" . }}

{{ template "chart.description" . }}

{{ template "chart.homepageLine" . }}

{{ template "chart.maintainersSection" . }}

{{ template "chart.sourcesSection" . }}

{{ template "chart.requirementsSection" . }}

## Deployment Architecture

This Chart allows the Datalab to be deployed as follows :

(Insert software architecture diagram)

## Installing the Chart

The default Chart values allows the deployment of a working (although unsecure) version of the Chart

To install the chart, just type :

```sh
something
```

{{ template "chart.valuesSection" . }}

{{ template "helm-docs.versionFooter" . }}
Binary file added charts/redcap/charts/logstash-5.5.6.tgz
Binary file not shown.
Binary file added charts/redcap/charts/mysql-9.12.3.tgz
Binary file not shown.
21 changes: 21 additions & 0 deletions charts/redcap/charts/mysql/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*~
# Various IDEs
.project
.idea/
*.tmproj
6 changes: 6 additions & 0 deletions charts/redcap/charts/mysql/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dependencies:
- name: common
repository: https://charts.bitnami.com/bitnami
version: 2.2.2
digest: sha256:49ca75cf23ba5eb7df4becef52580f98c8bd8194eb80368b9d7b875f6eefa8e5
generated: "2023-01-09T03:04:58.278003695Z"
29 changes: 29 additions & 0 deletions charts/redcap/charts/mysql/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
annotations:
category: Database
licenses: Apache-2.0
apiVersion: v2
appVersion: 8.0.32
dependencies:
- name: common
repository: https://charts.bitnami.com/bitnami
tags:
- bitnami-common
version: 2.x.x
description: MySQL is a fast, reliable, scalable, and easy to use open source relational
database system. Designed to handle mission-critical, heavy-load production applications.
home: https://github.com/bitnami/charts/tree/main/bitnami/mysql
icon: https://bitnami.com/assets/stacks/mysql/img/mysql-stack-220x234.png
keywords:
- mysql
- database
- sql
- cluster
- high availability
maintainers:
- name: Bitnami
url: https://github.com/bitnami/charts
name: mysql
sources:
- https://github.com/bitnami/containers/tree/main/bitnami/mysql
- https://mysql.com
version: 9.4.8
Loading

0 comments on commit 9f2611c

Please sign in to comment.