Documentation ¶
Index ¶
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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 ¶
Click to show internal directories.
Click to hide internal directories.