We support env variables resolution in our config, for example:
kind: destination
spec:
name: postgresql
version: v1.2.0
spec:
connection_string: ${CQ_DSN}
However if CQ_DSN is not configured we fail with a confusing error:
Loading spec(s) from examples
Error: failed to sync source azure: failed to initialize destination plugin client for postgresql: destination configure: failed to call Configure: rpc error: code = Unknown desc = failed to connect to postgresql: failed to connect to `host=/private/tmp user=<user> database=`: dial error (dial unix /private/tmp/.s.PGSQL.5432: connect: no such file or directory)
exit status 1
We should provide a clear error message in these cases