Skip to content

feat(chart): add the foca-common library chart #350

Closed

Description

@uniqueg

Why?

Child of #312 (shared Helm library chart for FOCA apps): the core library chart, extracted from cloud-registry's chart v3, so cloud-registry v0.3.0 (the template app) and then proTES and other apps use one chart implementation.

Decisions (user, 2026-10-21), answering #312's open questions:

  1. A library chart (type: library, e.g. foca-common) with named templates; apps keep thin charts and can add their own resources.
  2. It lives in this repo under charts/, versioned independently of FOCA with its own tags (e.g. chart-v0.1.0), published as an OCI artifact to oci://ghcr.io/elixir-cloud-aai/charts.
  3. The bundled MongoDB stays (optional; external databases remain possible).

How?

  1. Templates, extracted from cloud-registry's deployment/ (chart v3), each optional through values, following Helm conventions (camelCase values):
    • app Deployment (image, resources, non-root securityContext for OpenShift, probes, enableServiceLinks: false);
    • ConfigMap with the FOCA_CONFIG_OVERLAY file rendered from .Values.config, mounted as a directory, with a checksum/config annotation;
    • Secret wiring (existingSecret-style values → MONGO_* variables via secretKeyRef);
    • Service, Ingress, OpenShift Route;
    • NetworkPolicy for the app and for MongoDB (as in cloud-registry);
    • optional MongoDB (Deployment, Service, PVC, auth, init script).
  2. values.schema.json for the library's values (apps can extend it).
  3. CI: helm lint, template snapshot tests with a thin chart for the petstore example; the install test on a kind cluster (chart-testing) is ci(chart): install test on kind and GHCR release #356.
  4. Docs: a page on building an app chart on top of the library chart, extending the Kubernetes deployment guide.

The kind install test and the release workflow are split off into #356. The Celery worker and broker for proTES/proWES come later (separate child of #312).

Acceptance criteria

  • The library chart renders everything cloud-registry's chart v3 does, with the same values structure; tests cover it.
  • Documented.

Activity

  1. added
    priority: high
    status: in progress
    type: delivery
    type: feature
    workload: days
    on Oct 21, 2026
  2. uniqueg commented on Oct 21, 2026

    @uniqueg
    MemberAuthor

    Done in #357.

  3. removed
    status: in progress
    on Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: hightype: deliverytype: featureworkload: days

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions