Background
Our K8s Operator (via CUE) injects DB_HOST, DB_USER, etc., when a database trait is used. However, PostgREST and Hasura need a fully formatted DATABASE_URL string (e.g., postgres://user:pass@host:5432/db).
Specific Steps
Expected Output
A PR modifying CUE engine to inject DATABASE_URL into deployment workloads seamlessly.
Background
Our K8s Operator (via CUE) injects
DB_HOST,DB_USER, etc., when a database trait is used. However, PostgREST and Hasura need a fully formattedDATABASE_URLstring (e.g.,postgres://user:pass@host:5432/db).Specific Steps
cue/definitionsand locate the logic handling the database trait.DATABASE_URLenvironment variable into the Component's Deployment, combining the existing secret refs.Expected Output
A PR modifying CUE engine to inject
DATABASE_URLinto deployment workloads seamlessly.