Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientServiceName ¶
ClientServiceName returns the client service name for a shard. shardName must be "etcd" (the default shard) or "etcd-<suffix>" (a named shard).
func DiscoveryServiceName ¶
DiscoveryServiceName returns the discovery service name for a shard. shardName must be "etcd" (the default shard) or "etcd-<suffix>" (a named shard).
Types ¶
type ManagedEffectiveShard ¶
type ManagedEffectiveShard struct {
Name string
ResourcePrefixes []string
Storage hyperv1.ManagedEtcdShardStorageSpec
Replicas int32 // 0 means "use framework default" (for the default shard)
Scheduling hyperv1.EtcdShardSchedulingSpec
IsDefault bool
}
ManagedEffectiveShard represents a resolved etcd shard with all configuration needed to create the corresponding component.
func EffectiveShards ¶
func EffectiveShards(managed *hyperv1.ManagedEtcdSpec) []ManagedEffectiveShard
EffectiveShards returns the full list of etcd shards for a managed etcd configuration. It always synthesizes a default shard from the top-level Storage field that handles all resources ("/"), then appends any explicitly configured non-default shards. When no shards are configured, the returned list contains only the default shard, which is identical to today's single-etcd behavior.
type UnmanagedEffectiveShard ¶
type UnmanagedEffectiveShard struct {
Name string
ResourcePrefixes []string
Endpoint string
IsDefault bool
}
UnmanagedEffectiveShard represents a resolved etcd shard for unmanaged etcd.
func UnmanagedEffectiveShards ¶
func UnmanagedEffectiveShards(unmanaged *hyperv1.UnmanagedEtcdSpec) []UnmanagedEffectiveShard
UnmanagedEffectiveShards returns the full list of etcd shards for unmanaged etcd.