## Beta stage overrides
## Helm merges these with the base values.yaml.
## Only values that differ from production are listed here.

## Image tag — overridden by Kargo during promotion
image:
  tag: latest

## Config overrides: mock broker, debug logging, no trading
config:
  BROKER_MODE: "mock"
  BROKER_PROVIDER: "mock"
  LOG_LEVEL: "DEBUG"
  TRADING_ENABLED: "false"
  POSTGRES_DB: "stonks_beta"
  REDIS_DB: "1"
  DEPLOY_STAGE: "beta"
  POSTGRES_USER: "stonks_beta"

## All services pinned to 1 replica with lighter resource limits
services:
  ingestion:
    replicas: 1
    resources:
      requests: { cpu: 50m, memory: 64Mi }
      limits: { cpu: 250m, memory: 128Mi }

  parser:
    replicas: 1
    resources:
      requests: { cpu: 50m, memory: 64Mi }
      limits: { cpu: 250m, memory: 128Mi }

  aggregation:
    replicas: 1
    resources:
      requests: { cpu: 50m, memory: 64Mi }
      limits: { cpu: 250m, memory: 128Mi }

  extractor:
    resources:
      requests: { cpu: 100m, memory: 128Mi }
      limits: { cpu: 500m, memory: 256Mi }

  tradingEngine:
    resources:
      requests: { cpu: 50m, memory: 128Mi }
      limits: { cpu: 250m, memory: 256Mi }

## Lighter analytics stack for beta
trino:
  resources:
    requests: { cpu: 250m, memory: 512Mi }
    limits: { cpu: "1", memory: 2Gi }

hiveMetastore:
  resources:
    requests: { cpu: 100m, memory: 256Mi }
    limits: { cpu: 500m, memory: 512Mi }

superset:
  resources:
    requests: { cpu: 100m, memory: 256Mi }
    limits: { cpu: 500m, memory: 1Gi }

## Beta-specific ingress hostnames
ingress:
  hosts:
    queryApi: stonks-beta-api.celestium.life
    symbolRegistry: stonks-beta-registry.celestium.life
    dashboard: stonks-beta.celestium.life
    superset: stonks-beta-dash.celestium.life
    trino: stonks-beta-trino.celestium.life
    tradingEngine: stonks-beta-trading.celestium.life
