resolve_variable
Determine what a config variable evaluates to across .env, Docker Compose, and Kubernetes files, identifying which source takes precedence.
Instructions
Resolves what a config/env variable actually evaluates to across dotenv, docker-compose, and Kubernetes sources, and which source wins.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | Paths (relative to projectRoot) to .env*, compose, and k8s manifest files to consider | |
| service | No | docker-compose service name to resolve for | |
| variable | Yes | The variable name, e.g. DATABASE_URL | |
| workload | No | Kubernetes workload (Deployment/Pod/etc.) name to resolve for | |
| container | No | Kubernetes container name within the workload | |
| environment | No | Target NODE_ENV-style value for dotenv resolution, e.g. "production" | |
| projectRoot | No | Directory the file paths are relative to |