Repository navigation
v0.2.0
dbfwd.List lists the databases that dbfwd can reach, for the \k command of usql (D18, docs/LIST.md). It takes the same URL as Resolve with * in the host, such as k://, k://.prod, k://. or k+cnpg://., and returns one entry for each database: a cluster CR of an operator with everything it owns, a child such as a CloudNativePG Pooler or Database, or a workload with no operator whose pod spec shows a known database image or environment. Each entry holds the shortest URL that Resolve maps to the same database, and never a password. A listing reads no Secret and takes two kubectl calls.
The command gets dbfwd list, with the flags of kubectl: -A, -n NAMESPACE, --context NAME, and -w for the owner, the roles, the ready pods, the databases and where the password comes from.