clusterdir

package
v0.31.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

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 For

func For(clusterName string) (string, error)

For returns where clusterName's config lives.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL