damap-chart

by DAMAP

Helm chartv0.4.1App 5.1.1MITVerified publisher

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

VariableDescriptionDefault
debugEnable debug-level logging. Intended for development or troubleshooting purposes.true
openshiftSet to true if deploying on OpenShift, false for vanilla Kubernetes.false

OpenShift Custom Builds (customBuild)

KeyDescriptionDefault
backend.nameName of the OpenShift BuildConfig for backend
backend.refGit branch or tag to buildnext
backend.repoGit repository for backend buildhttps://github.com/damap-org/damap-backend
frontend.nameName of the OpenShift BuildConfig for frontend
frontend.refGit branch or tag to buildnext
frontend.repoGit repository for frontend buildhttps://github.com/damap-org/damap-frontend

DAMAP Application (damap)

VariableDescriptionDefault
backendVersionBackend image tag.5.1.1
customDomainUse custom domain routing.false
dbNameDatabase name.damap
dbPasswordDatabase password.damap_pass
dbUserDatabase user.damap
evaluationServiceUrlDMP evaluation service URL. Leave empty to disable the integration.
frontendVersionFrontend image tag.5.1.1
genericCrisUrlBase URL of the optional Generic CRIS integration.
genericCrisApiKeyAPI key for the optional Generic CRIS integration.
hostFolderBase directory for hostPath persistence. Demo and small-scale deployments only./tmp/damap
hostnamePublic hostname.localhost
ingressClassIngress class name.
persistDataEnable persistent storage.false
personServicesPrioritized person lookup services used by DAMAP.See values.yaml
projectServiceService used to fetch and manage project metadata, for example elsevier-pure.elsevier-pure
protocolProtocol to use for accessing DAMAP (http or https).http
resourcesResource requests and limits for the DAMAP backend container.See values.yaml
storageClassNameStorageClass for persistent volumes.
storageSizeStorage size for the DAMAP database PVC when persistence is enabled.5Gi
tlsClusterIssuercert-manager ClusterIssuer for TLS.
useExistingSecretUse pre-created Kubernetes Secret instead of generating one.false
useHostFolderUse 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)

KeyDescriptionDefault
autoCreateDatabasesAutomatically create databases for tenants.false
enabledEnable multi-tenant mode.false
initContainerResource requests and limits for the multitenancy init container.See values.yaml
tenantsMap 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)

VariableDescriptionDefault
customizeSet to true to enable a custom logo.false
logoBase64-encoded SVG for the main logo. Combined with logoCropped, total must not exceed 1 MB.
logoCroppedBase64-encoded SVG for the cropped logo. Combined with logo, total must not exceed 1 MB.
resourcesResource requests and limits for the DAMAP frontend container.See values.yaml

Gotenberg (gotenberg)

VariableDescriptionDefault
resourcesResource requests and limits for the Gotenberg service.See values.yaml

PostgreSQL (postgres)

Select one of three deployment modes with postgres.mode:

  • simple deploys the chart's bundled single-instance PostgreSQL Deployment.
  • external connects DAMAP to the server configured by postgres.host and postgres.port.
  • cnpg creates a CloudNativePG cluster. The CloudNativePG operator must already be installed.
VariableDescriptionDefault
hostPostgreSQL hostname used in simple and external modes. CNPG derives its read/write service.damap-db
modePostgreSQL deployment mode: simple, external, or cnpg.simple
portTCP port for the PostgreSQL server used by DAMAP.5432
resourcesResource requests and limits for the simple PostgreSQL container or CNPG cluster.See values.yaml

CloudNativePG (postgres.cnpg)

VariableDescriptionDefault
authSecretNameExisting kubernetes.io/basic-auth Secret for the application role. Empty creates <cluster>-app.
backup.accessKeyIdKeyKey in the credentials Secret containing the access key ID.
backup.bucketSecretNameSecret containing the S3 credentials. Required when backups are enabled.
backup.destinationPathObject-store destination, for example s3://bucket/path. Required when backups are enabled.
backup.enabledEnable S3-compatible backups and create a CNPG ScheduledBackup.false
backup.endpointURLS3-compatible endpoint URL. Required when backups are enabled.
backup.immediateRun a backup immediately when the ScheduledBackup is created.false
backup.retentionPolicyBackup retention policy.30d
backup.scheduleSix-field cron schedule (includes seconds).0 0 2 * * * (daily at 02:00)
backup.secretAccessKeyKeyKey in the credentials Secret containing the secret access key.
backup.serverNameOptional server name used in the object-store path.
backup.suspendSuspend scheduled backups.false
backup.targetInstance role targeted for backups: primary or prefer-standby.prefer-standby
clusterNameName 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartdamap-chart is pinned at v0.4.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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