usecases

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 19 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
	ClusterID      string
	ClusterNetwork string
}

type Usecases

type Usecases struct {
	// SpawnProcessLimit limits the number of spawned ansible processes.
	SpawnProcessLimit *semaphore.Weighted
}

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)

func (*Usecases) UpdateNoProxyEnvsInKubernetes added in v0.9.1

func (u *Usecases) UpdateNoProxyEnvsInKubernetes(request *pb.UpdateNoProxyEnvsInKubernetesRequest) (*pb.UpdateNoProxyEnvsInKubernetesResponse, error)

func (*Usecases) UpdateProxyEnvsOnNodes added in v0.9.1

func (u *Usecases) UpdateProxyEnvsOnNodes(request *pb.UpdateProxyEnvsOnNodesRequest) (*pb.UpdateProxyEnvsOnNodesResponse, 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