Expand description
Port of internal/clusterdomain/resolve.go: settles
cluster.network.cluster_domain against the zone the cluster actually
serves.
xianyun_core::config::container::Container now carries the
global.cluster_domain/global.cluster_domain_source fields this
module reads and writes (added since this crate’s Phase 3 scaffold was
written), so this is a direct port against the real type rather than
the local shim the original scaffold anticipated needing.
Enums§
- Resolve
Error - Port of
clusterdomain.ErrClusterDomainUnknownand thecluster.ErrConfigMismatch/cluster.ErrClusterNotRunningsentinelsResolve/ResolveRunningwrap.
Constants§
- CONFIGURED_
SOURCE - Port of
clusterdomain.ConfiguredSource.
Functions§
- configured_
domain - Port of
clusterdomain.configuredDomain: returnscluster.network.cluster_domain, or""when unset. - resolve
- Port of
clusterdomain.Resolve: settlescluster.network.cluster_domainagainst the zonesources_for(mgr)discovers throughreader, and records the outcome oncfg. - resolve_
and_ reload - Port of
clusterdomain.ResolveAndReload: resolves the domain, then reloads the config so${CAPRONI_CLUSTER_DOMAIN}expands with it. - resolve_
running - Port of
clusterdomain.ResolveRunning:Resolvefor commands that never start a cluster. Returns(skipped, err):skippedcarries the “cluster is not running, kept the configured value” case,erris a hard failure.
Type Aliases§
- Connector
- Port of
clusterdomain.Connector: opens a DNS reader on a cluster that is known to be running.