Skip to main content

Module kubeconfig

Module kubeconfig 

Source
Expand description

Port of internal/kubeconfig: manages virtual kubeconfigs for clusters managed by Caproni, and merges cluster kubeconfigs into the user’s own.

Modules§

file
Port of internal/kubeconfig/file.go: resolves, reads, and atomically rewrites a kubeconfig file on disk, keeping a rolling backup.
merge
Port of internal/kubeconfig/merge.go: merges a cluster’s self-contained kubeconfig into a user’s existing kubeconfig, renaming the context, cluster and user entries to a stable name, and round-tripping everything else (comments included) untouched.

Structs§

Config
Port of kubeconfig.Config: a temporary, Caproni-managed virtual kubeconfig.

Enums§

KubeconfigError
Errors from creating or using a virtual Config.