Skip to main content

Crate xianyun_cluster

Crate xianyun_cluster 

Source
Expand description

Port of internal/cluster, internal/clusterdomain, internal/clustertool, and internal/kubeconfig: cluster driver interface and implementations, DNS zone discovery, interactive tool execution, and kubeconfig file management for Caproni-managed clusters.

See PORT_NOTES.md for the handful of tests that could not be ported directly, and for per-module divergence notes.

Modules§

clusterdomain
Port of internal/clusterdomain/clusterdomain.go: discovers the DNS zone a cluster serves, through the sources its driver names in driver::Driver::domain_sources.
clustertool
Port of internal/clustertool: runs interactive external tools against the Caproni-managed cluster, with a short-lived virtual kubeconfig in their environment.
driver
Port of internal/cluster/interface.go, internal/cluster/domain.go, and internal/cluster/errors.go: the Driver trait every cluster backend implements, plus the shared status/error types.
kubeconfig
Port of internal/kubeconfig: manages virtual kubeconfigs for clusters managed by Caproni, and merges cluster kubeconfigs into the user’s own.
registry
Port of internal/cluster/registry.go: a registry of driver factories, keyed by driver name, that new_manager and list_drivers read from.