Documentation
¶
Overview ¶
Package clusterdir owns the per-cluster config directory convention: <user config dir>/kubeaid-cli/<cluster>/configs, which is ~/.config/kubeaid-cli/<cluster>/configs on Linux.
Deliberately NOT the working-directory-relative "outputs/configs" that --configs-directory defaults to. secrets.yaml holds cloud credentials and an mTLS private key, and an operator running kubeaid-cli inside a checkout — the likely case, since they have a kubeaid-config repo — would leave those one `git add .` away from being committed.
Stdlib-only on purpose: both pkg/obmondo and pkg/config/parser depend on this, and neither should have to pull in the other.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func List ¶
func List() []string
List returns the names of every cluster with a config on disk, sorted.
Best-effort: an unreadable or absent root is an empty list, not an error. Callers use this to enrich a message the operator is already reading, so failing to build it must never replace the message it was decorating.
Types ¶
This section is empty.