helm

plugin-br-payments-fakebtg-helm

A Helm chart for fakebtg — a stand-in HTTP server that mocks the BTG provider API surface for use in dev/staging environments without access to the real BTG sandbox.

Dev/staging only. Do not install in production.

TL;DR

helm install fakebtg oci://ghcr.io/lerianstudio/plugin-br-payments-fakebtg-helm \
  --namespace midaz-plugins --create-namespace

Prerequisites

Architecture

The chart deploys one Deployment, one pod running the /fakebtg binary on a distroless nonroot image. It listens on port 8090 by default (override with the FAKEBTG_PORT env var via fakebtg.extraEnvVars). There is no persistent state and no external dependency.

Endpoints

Required configuration

None. fakebtg starts with no env vars set and exposes GET /health on port 8090.

Common values

Key Default Description
fakebtg.replicaCount 1 Number of replicas. Keep at 1 — scenario state is in-memory.
fakebtg.image.repository ghcr.io/lerianstudio/plugin-br-payments-fakebtg Container image.
fakebtg.image.tag "" (Chart appVersion) Image tag.
fakebtg.service.type ClusterIP Service type.
fakebtg.service.port 8090 Service port.
fakebtg.ingress.enabled false Expose via Ingress for external testers.
fakebtg.extraEnvVars {} Extra env vars (e.g., FAKEBTG_PORT: ":9000").

See values.yaml for the full list.

Ingress

External integrators that need to hit /admin/* for chaos scenarios can expose fakebtg via Ingress:

fakebtg:
  ingress:
    enabled: true
    className: nginx
    hosts:
      - host: fakebtg.staging.example.com
        paths:
          - path: /
            pathType: Prefix

Probes

Probe Path Notes
Liveness /health Returns 200 once the HTTP server is up.
Readiness /health Same endpoint; no external deps to gate on.

Uninstall

helm uninstall fakebtg -n midaz-plugins

Source

License

Apache 2.0 (chart). The plugin-br-payments application itself is licensed under the Elastic License 2.0.