Documentation ¶
Index ¶
- Variables
- func CreateSnapshot(ctx context.Context, log *zap.SugaredLogger, etcdConfig client.Config, ...) error
- func DecompressSnapshot(filename string) (string, error)
- type Cluster
- func (e *Cluster) DeleteUnwantedDeadMembers(ctx context.Context, log *zap.SugaredLogger) (bool, error)
- func (e *Cluster) Exists() bool
- func (e *Cluster) GetEtcdClient(ctx context.Context, log *zap.SugaredLogger) (*client.Client, error)
- func (e *Cluster) GetEtcdEndpointConfigs(ctx context.Context) ([]client.Config, error)
- func (e *Cluster) GetMemberByName(ctx context.Context, log *zap.SugaredLogger, memberName string) (*etcdserverpb.Member, error)
- func (e *Cluster) Init(ctx context.Context) (*kubermaticv1.Cluster, error)
- func (e *Cluster) IsClusterHealthy(ctx context.Context, log *zap.SugaredLogger) (bool, error)
- func (e *Cluster) JoinCluster(ctx context.Context, log *zap.SugaredLogger) error
- func (e *Cluster) KubermaticCluster(ctx context.Context) (*kubermaticv1.Cluster, error)
- func (e *Cluster) LogInitialState(log *zap.SugaredLogger)
- func (e *Cluster) RemoveStaleMember(ctx context.Context, log *zap.SugaredLogger, memberID uint64) error
- func (e *Cluster) SetClusterSize(ctx context.Context) error
- func (e *Cluster) SetInitialMembers(ctx context.Context, log *zap.SugaredLogger)
- func (e *Cluster) SetInitialState(ctx context.Context, log *zap.SugaredLogger, cluster *kubermaticv1.Cluster) error
- func (e *Cluster) StartEtcdCmd(log *zap.SugaredLogger) (*exec.Cmd, error)
- func (e *Cluster) UpdatePeerURLs(ctx context.Context, log *zap.SugaredLogger) error
- type SnapshotOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var ValidCompressions = []string{"gzip"}
Functions ¶
func CreateSnapshot ¶ added in v2.26.0
func CreateSnapshot(ctx context.Context, log *zap.SugaredLogger, etcdConfig client.Config, opt *SnapshotOptions) error
func DecompressSnapshot ¶ added in v2.26.0
Types ¶
type Cluster ¶
type Cluster struct { Cluster string // given as a CLI flag CaCertFile string ClientCertFile string ClientKeyFile string PodName string PodIP string EtcdctlAPIVersion string DataDir string Token string EnableCorruptionCheck bool // contains filtered or unexported fields }
func (*Cluster) DeleteUnwantedDeadMembers ¶
func (*Cluster) GetEtcdClient ¶
func (*Cluster) GetEtcdEndpointConfigs ¶
GetEtcdEndpointClients returns a slice of client configs with each config pointing to exactly one of the automatically discovered etcd endpoints.
func (*Cluster) GetMemberByName ¶
func (e *Cluster) GetMemberByName(ctx context.Context, log *zap.SugaredLogger, memberName string) (*etcdserverpb.Member, error)
func (*Cluster) IsClusterHealthy ¶
func (*Cluster) JoinCluster ¶
func (*Cluster) KubermaticCluster ¶
func (*Cluster) LogInitialState ¶
func (e *Cluster) LogInitialState(log *zap.SugaredLogger)
func (*Cluster) RemoveStaleMember ¶
func (*Cluster) SetInitialMembers ¶
func (e *Cluster) SetInitialMembers(ctx context.Context, log *zap.SugaredLogger)
func (*Cluster) SetInitialState ¶
func (e *Cluster) SetInitialState(ctx context.Context, log *zap.SugaredLogger, cluster *kubermaticv1.Cluster) error
func (*Cluster) StartEtcdCmd ¶
func (*Cluster) UpdatePeerURLs ¶
type SnapshotOptions ¶ added in v2.26.0
Click to show internal directories.
Click to hide internal directories.