# services/cassandra/configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: cassandra-config
  namespace: cassandra
data:
  CASSANDRA_PROFILE: cluster
  CASSANDRA_AUTH_MODE: oidc
  CASSANDRA_SIM_RUNNER: kubernetes-job
  CASSANDRA_PUBLIC_URL: https://cassandra.bstein.dev
  CASSANDRA_PUBLIC_BASE_URL: https://cassandra.bstein.dev
  CASSANDRA_ALPHA_LABEL: ALPHA
  CASSANDRA_OIDC_ISSUER_URL: https://sso.bstein.dev/realms/cassandra
  CASSANDRA_OIDC_ISSUER: https://sso.bstein.dev/realms/cassandra
  CASSANDRA_OIDC_CLIENT_ID: cassandra-web
  CASSANDRA_OIDC_ALLOWED_GROUPS: alpha,cassandra-tester,admin
  CASSANDRA_OIDC_REQUIRED_GROUPS: alpha,cassandra-tester,admin
  CASSANDRA_OIDC_ADMIN_GROUPS: admin
  CASSANDRA_NAMESPACE: cassandra
  CASSANDRA_OWNER_USER_ID_ALIASES: veles-dev=d357688e-e3e4-4f18-9491-a4ed5622deb6;a21a286c-6c82-4180-9243-7c916442ecf0=d357688e-e3e4-4f18-9491-a4ed5622deb6
  CASSANDRA_META_MAINTAINER_USER_IDS: d357688e-e3e4-4f18-9491-a4ed5622deb6
  CASSANDRA_SIM_IMAGE: registry.bstein.dev/cassandra/cassandra-sim-worker:0.9.62 # {"$imagepolicy": "cassandra:cassandra-sim-worker"}
  CASSANDRA_GENERATOR_WORKER_IMAGE: registry.bstein.dev/cassandra/cassandra-generator-worker:0.9.62 # {"$imagepolicy": "cassandra:cassandra-generator-worker"}
  CASSANDRA_SIM_WORKER_VERSION: "0.8.150"
  CASSANDRA_GENERATOR_WORKER_VERSION: "0.8.150"
  CASSANDRA_STRATEGY_SPEC_HINT_INTERPRETATION_TIMEOUT: "420"
  CASSANDRA_SIM_SERVICE_ACCOUNT: cassandra-sim
  CASSANDRA_GENERATOR_WORKER_SERVICE_ACCOUNT: cassandra-generator
  CASSANDRA_SIM_PRIORITY_CLASS: cassandra-sim
  CASSANDRA_GENERATOR_WORKER_PRIORITY_CLASS: cassandra-core
  CASSANDRA_SIM_NODE_SELECTOR: cassandra.bstein.dev/node-pool=oceanus,kubernetes.io/arch=amd64
  CASSANDRA_GENERATOR_WORKER_NODE_SELECTOR: cassandra.bstein.dev/node-pool=oceanus,kubernetes.io/arch=amd64
  CASSANDRA_SIM_TOLERATIONS: veles.bstein.dev/simulation=true:NoSchedule
  CASSANDRA_GENERATOR_WORKER_TOLERATIONS: veles.bstein.dev/simulation=true:NoSchedule
  CASSANDRA_SIM_ACTIVE_DEADLINE_SECONDS: "7200"
  CASSANDRA_GENERATOR_WORKER_ACTIVE_DEADLINE_SECONDS: "14400"
  CASSANDRA_SIM_TTL_SECONDS: "3600"
  CASSANDRA_GENERATOR_WORKER_TTL_SECONDS: "600"
  CASSANDRA_SIM_CPU_REQUEST: 500m
  CASSANDRA_SIM_CPU_LIMIT: "2"
  CASSANDRA_SIM_MEMORY_REQUEST: 1Gi
  CASSANDRA_SIM_MEMORY_LIMIT: 4Gi
  CASSANDRA_GENERATOR_WORKER_CPU_REQUEST: 100m
  CASSANDRA_GENERATOR_WORKER_CPU_LIMIT: "1"
  CASSANDRA_GENERATOR_WORKER_MEMORY_REQUEST: 512Mi
  CASSANDRA_GENERATOR_WORKER_MEMORY_LIMIT: 2Gi
  CASSANDRA_SIM_FS_GROUP: "10001"
  CASSANDRA_GENERATOR_WORKER_FS_GROUP: "10001"
  CASSANDRA_MAX_ACTIVE_SIMS_PER_USER: "32"
  CASSANDRA_MAX_ACTIVE_SIMS_GLOBAL: "32"
  CASSANDRA_RETENTION_DAYS: "30"
  CASSANDRA_LOG_ROOT: /data/cassandra-artifacts/logs
  CASSANDRA_REPORT_ROOT: /data/cassandra-artifacts/reports
  CASSANDRA_ARTIFACT_ROOT: /data/cassandra-artifacts/artifacts
  CASSANDRA_SIM_ARTIFACT_PVC: cassandra-artifacts
  CASSANDRA_SIM_ARTIFACT_MOUNT_PATH: /data/cassandra-artifacts
  CASSANDRA_SIM_CODEX_CLI_SECRET_PROVIDER_CLASS: cassandra-codex-cli
  CASSANDRA_SIM_CODEX_CLI_MOUNT_PATH: /var/run/cassandra-codex-cli
  CASSANDRA_SIM_CODEX_CLI_HOME: /home/cassandra/.codex
  CASSANDRA_GENERATOR_WORKER_CODEX_CLI_SECRET_PROVIDER_CLASS: cassandra-generator-codex-cli
  CASSANDRA_GENERATOR_WORKER_CODEX_CLI_MOUNT_PATH: /var/run/cassandra-codex-cli
  CASSANDRA_GENERATOR_WORKER_CODEX_CLI_HOME: /home/cassandra/.codex
