damap-chart
by DAMAP
A tool to create machine-actionable data management plans.
About this chart
Helm chart for Kubernetes/OpenShift deployment
This Helm chart deploys DAMAP on a Kubernetes or OpenShift cluster. Some features, such as auto-creating a custom build from Git, are only supported on OpenShift.
Prerequisites
Before deploying:
- Kubernetes ≥ 1.25
- An Ingress controller (vanilla Kubernetes)
- TLS certificate provisioning (recommended for production)
- Persistent storage (or hostPath for local testing)
- The CloudNativePG operator when using
postgres.mode=cnpg
Storage (vanilla Kubernetes only)
If you do not have a storage controller that can automatically create Persistent Volumes, create two PVs with 5 GB each. Make sure that their storage class matches the class you specify in the Helm values file.
Installation (OCI)
This chart is published as an OCI artifact.
Install:
helm install damap oci://ghcr.io/damap-org/damap-chart --version 0.4.1
Upgrade:
helm upgrade damap oci://ghcr.io/damap-org/damap-chart --version 0.4.1
Configuration
All configuration is managed via values.yaml. Below are the main sections you should review and adapt before deploying.
Global
| Variable | Description | Default |
|---|---|---|
| debug | Enable debug-level logging. Intended for development or troubleshooting purposes. | true |
| openshift | Set to true if deploying on OpenShift, false for vanilla Kubernetes. | false |
OpenShift Custom Builds (customBuild)
| Key | Description | Default |
|---|---|---|
| backend.name | Name of the OpenShift BuildConfig for backend | |
| backend.ref | Git branch or tag to build | next |
| backend.repo | Git repository for backend build | https://github.com/damap-org/damap-backend |
| frontend.name | Name of the OpenShift BuildConfig for frontend | |
| frontend.ref | Git branch or tag to build | next |
| frontend.repo | Git repository for frontend build | https://github.com/damap-org/damap-frontend |
DAMAP Application (damap)
| Variable | Description | Default |
|---|---|---|
| backendVersion | Backend image tag. | 5.1.1 |
| customDomain | Use custom domain routing. | false |
| dbName | Database name. | damap |
| dbPassword | Database password. | damap_pass |
| dbUser | Database user. | damap |
| evaluationServiceUrl | DMP evaluation service URL. Leave empty to disable the integration. | |
| frontendVersion | Frontend image tag. | 5.1.1 |
| genericCrisUrl | Base URL of the optional Generic CRIS integration. | |
| genericCrisApiKey | API key for the optional Generic CRIS integration. | |
| hostFolder | Base directory for hostPath persistence. Demo and small-scale deployments only. | /tmp/damap |
| hostname | Public hostname. | localhost |
| ingressClass | Ingress class name. | |
| persistData | Enable persistent storage. | false |
| personServices | Prioritized person lookup services used by DAMAP. | See values.yaml |
| projectService | Service used to fetch and manage project metadata, for example elsevier-pure. | elsevier-pure |
| protocol | Protocol to use for accessing DAMAP (http or https). | http |
| resources | Resource requests and limits for the DAMAP backend container. | See values.yaml |
| storageClassName | StorageClass for persistent volumes. | |
| storageSize | Storage size for the DAMAP database PVC when persistence is enabled. | 5Gi |
| tlsClusterIssuer | cert-manager ClusterIssuer for TLS. | |
| useExistingSecret | Use pre-created Kubernetes Secret instead of generating one. | false |
| useHostFolder | Use hostPath storage from hostFolder when persistence is enabled. Demo/local use only. | true |
To use Generic CRIS for projects, set damap.projectService: generic. For person lookup, add the following entry to damap.personServices and configure damap.genericCrisUrl and damap.genericCrisApiKey:
- display-text: "Generic CRIS"
query-value: "GENERIC"
class-name: "org.damap.base.integration.generic.GenericPersonService"
DAMAP Multitenancy (damap.multitenancy)
| Key | Description | Default |
|---|---|---|
| autoCreateDatabases | Automatically create databases for tenants. | false |
| enabled | Enable multi-tenant mode. | false |
| initContainer | Resource requests and limits for the multitenancy init container. | See values.yaml |
| tenants | Map of tenant IDs to tenant-specific DAMAP configuration. The tenant ID is used as database name. | {} |
When multitenancy is enabled, an omitted or empty tenants map uses the bundled tenant_1 and tenant_2 examples for testing. A non-empty map replaces the examples entirely, including their settings: only the supplied tenants are configured and provisioned. The examples live in files/default-tenants.yaml so Helm cannot merge them into custom tenants.
Example tenant configuration:
damap:
multitenancy:
enabled: true
tenants:
tenant_1:
title: Tenant 1 DAMAP Tool
fields:
ethical-report-enabled: false
project-service: disabled
elsevier-pure-backend: http
elsevier-pure-endpoint-url: "https://tenant1.example.com/ws/api/"
elsevier-pure-api-key: "your API key here"
person-services:
- display-text: ORCID
query-value: ORCID
class-name: org.damap.base.integration.orcid.ORCIDPersonServiceImpl
For tenant-specific integrations, configure evaluation-service-url (empty disables evaluation), generic-cris-url, and generic-cris-api-key inside each tenant entry. Select project-service: generic and/or add the Generic CRIS person service to that tenant's person-services when needed. Keep tenant API keys in a protected values file; tenant configuration is rendered into the damap-tenants Secret.
When upgrading from a version that included tenant_1 and tenant_2 directly in values.yaml, use a complete values file with helm upgrade --reset-values to avoid carrying those entries forward through reused values. Include either ID explicitly if it is a real tenant. This change does not delete existing PostgreSQL databases; review any unwanted example databases before removing them manually. CNPG tenant databases use databaseReclaimPolicy: retain.
Frontend Customization (frontend)
| Variable | Description | Default |
|---|---|---|
| customize | Set to true to enable a custom logo. | false |
| logo | Base64-encoded SVG for the main logo. Combined with logoCropped, total must not exceed 1 MB. | |
| logoCropped | Base64-encoded SVG for the cropped logo. Combined with logo, total must not exceed 1 MB. | |
| resources | Resource requests and limits for the DAMAP frontend container. | See values.yaml |
Gotenberg (gotenberg)
| Variable | Description | Default |
|---|---|---|
| resources | Resource requests and limits for the Gotenberg service. | See values.yaml |
PostgreSQL (postgres)
Select one of three deployment modes with postgres.mode:
simpledeploys the chart's bundled single-instance PostgreSQL Deployment.externalconnects DAMAP to the server configured bypostgres.hostandpostgres.port.cnpgcreates a CloudNativePG cluster. The CloudNativePG operator must already be installed.
| Variable | Description | Default |
|---|---|---|
| host | PostgreSQL hostname used in simple and external modes. CNPG derives its read/write service. | damap-db |
| mode | PostgreSQL deployment mode: simple, external, or cnpg. | simple |
| port | TCP port for the PostgreSQL server used by DAMAP. | 5432 |
| resources | Resource requests and limits for the simple PostgreSQL container or CNPG cluster. | See values.yaml |
CloudNativePG (postgres.cnpg)
| Variable | Description | Default |
|---|---|---|
| authSecretName | Existing kubernetes.io/basic-auth Secret for the application role. Empty creates <cluster>-app. | |
| backup.accessKeyIdKey | Key in the credentials Secret containing the access key ID. | |
| backup.bucketSecretName | Secret containing the S3 credentials. Required when backups are enabled. | |
| backup.destinationPath | Object-store destination, for example s3://bucket/path. Required when backups are enabled. | |
| backup.enabled | Enable S3-compatible backups and create a CNPG ScheduledBackup. | false |
| backup.endpointURL | S3-compatible endpoint URL. Required when backups are enabled. | |
| backup.immediate | Run a backup immediately when the ScheduledBackup is created. | false |
| backup.retentionPolicy | Backup retention policy. | 30d |
| backup.schedule | Six-field cron schedule (includes seconds). | 0 0 2 * * * (daily at 02:00) |
| backup.secretAccessKeyKey | Key in the credentials Secret containing the secret access key. | |
| backup.serverName | Optional server name used in the object-store path. | |
| backup.suspend | Suspend scheduled backups. | false |
| backup.target | Instance role targeted for backups: primary or prefer-standby. | prefer-standby |
| clusterName | Name of the CNPG Cluster resource. |
Deploy damap-chart with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has damap-chart on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartdamap-chart is pinned at v0.4.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply