Documentation ¶
Overview ¶
Package rejoinclient handles the automatic rejoining of a restarting node.
It does so by continuously sending rejoin requests to the JoinService of available control-plane endpoints.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RejoinClient ¶
type RejoinClient struct {
// contains filtered or unexported fields
}
RejoinClient is a client for requesting the needed information for rejoining a cluster as a restarting worker or control-plane node.
func New ¶
func New(dial grpcDialer, nodeInfo metadata.InstanceMetadata, meta metadataAPI, log *slog.Logger, ) *RejoinClient
New returns a new RejoinClient.
func (*RejoinClient) Start ¶
func (c *RejoinClient) Start(ctx context.Context, diskUUID string) (diskKey, measurementSecret []byte)
Start starts the rejoin client. The client will continuously request available control-plane endpoints from the metadata API and send rejoin requests to them. The function returns after a successful rejoin request has been performed.
Click to show internal directories.
Click to hide internal directories.