Add --datasource.* CLI flags to replace DATA_SOURCE_* env vars
Débutant
help wantedgo
3 597 ★
Poids du clone léger
Mise à jour
Description
Part of #1371.
**Summary**
`GetDataSources()` in `exporter/datasource.go` currently reads the Postgres connection config only from env vars, with no CLI flag path. Add flags that provide the same configuration options, so the env vars have something to deprecate in favor of.
**New flags**
- `--datasource.dsn` (replaces `DATA_SOURCE_NAME`)
- `--datasource.uri` (replaces `DATA_SOURCE_URI`)
- `--datasource.uri-file` (replaces `DATA_SOURCE_URI_FILE`)
- `--datasource.user` (replaces `DATA_SOURCE_USER`)
- `--datasource.user-file` (replaces `DATA_SOURCE_USER_FILE`)
- `--datasource.pass` (replaces `DATA_SOURCE_PASS`)
- `--datasource.pass-file` (replaces `DATA_SOURCE_PASS_FILE`)
Issues similaires
Tout voir
Go
Débutant
v0.8.0 starts a cluster-scoped Secret informer despite namespace-scoped Secret RBAC
## Description While testing Fence Agents Remediation (FAR) v0.8.0, I observed the manager repeatedly attemp…
Mise à jour
Go
Débutant
Check that an issuer's home_domain round-trips to the same stellar.toml
Written to the standard set by #33 — read that issue first for the expected level of detail and the acceptanc…
Mise à jour
Go
Débutant
Report auth_immutable: whether an issuer's flags can still change
> **This issue is the reference standard.** Every other check issue links back here for the expected level of…
Mise à jour