usecases

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// SpawnProcessLimit is the number of processes concurrently executing ansible.
	SpawnProcessLimit = 5
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AllNodesInventoryData

type AllNodesInventoryData struct {
	NodepoolsInfo []*NodepoolsInfo
}

type NodepoolsInfo

type NodepoolsInfo struct {
	Nodepools      utils.NodePools
	PrivateKey     string
	ClusterID      string
	ClusterNetwork string
}

type Usecases

type Usecases struct {
	// SpawnProcessLimit represents a synchronization channel which limits the number of spawned ansible
	// processes. This values should always be non-nil and be buffered, where the capacity indicates
	// the limit.
	SpawnProcessLimit chan struct{}
}

func (*Usecases) InstallNodeRequirements

func (u *Usecases) InstallNodeRequirements(request *pb.InstallRequest) (*pb.InstallResponse, error)

InstallNodeRequirements installs pre-requisite tools (currently only for LongHorn) on all the nodes

func (*Usecases) InstallVPN

func (u *Usecases) InstallVPN(request *pb.InstallRequest) (*pb.InstallResponse, error)

InstallVPN installs VPN between nodes in the k8s cluster and lb clusters

func (*Usecases) RemoveUtilities added in v0.6.2

func (*Usecases) SetUpLoadbalancers

func (u *Usecases) SetUpLoadbalancers(request *pb.SetUpLBRequest) (*pb.SetUpLBResponse, error)

func (*Usecases) TeardownLoadBalancers

func (u *Usecases) TeardownLoadBalancers(ctx context.Context, request *pb.TeardownLBRequest) (*pb.TeardownLBResponse, error)

TeardownLoadBalancers correctly destroys loadbalancers by selecting the new ApiServer endpoint.

func (*Usecases) UpdateAPIEndpoint

func (u *Usecases) UpdateAPIEndpoint(request *pb.UpdateAPIEndpointRequest) (*pb.UpdateAPIEndpointResponse, error)

type VPNInfo

type VPNInfo struct {
	ClusterNetwork string
	// NodepoolsInfos is a slice with each element of type *DesiredClusterNodepoolsInfo.
	// Each element corresponds to a cluster (either a Kubernetes cluster or attached LB clusters).
	NodepoolsInfos []*NodepoolsInfo
}

Jump to

Keyboard shortcuts

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