apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "cleveragents.fullname" . }}-config
  labels:
    {{- include "cleveragents.labels" . | nindent 4 }}
data:
  # NOTE: The Deployment template overrides these values via CLI args
  # (command/args in deployment.yaml).  Uvicorn CLI args take precedence
  # over environment variables.  These ConfigMap entries serve as a
  # fallback for any code paths that read env vars directly (e.g.,
  # Settings model defaults) rather than relying on CLI args.
  CLEVERAGENTS_SERVER_HOST: {{ .Values.server.host | quote }}
  CLEVERAGENTS_SERVER_PORT: {{ .Values.server.port | quote }}
  CLEVERAGENTS_LOG_LEVEL: {{ .Values.server.logLevel | quote }}
