etcd

package
v0.1.82 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientServiceName

func ClientServiceName(shardName string) string

ClientServiceName returns the client service name for a shard. shardName must be "etcd" (the default shard) or "etcd-<suffix>" (a named shard).

func DiscoveryServiceName

func DiscoveryServiceName(shardName string) string

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.

Jump to

Keyboard shortcuts

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