runner

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRunnerGroupServer

func CreateRunnerGroupServer(ctx context.Context,
	kubeconfigPath string,
	runnerImage string,
	rgSpec *types.RunnerGroupSpec,
	opts ...RunCmdOpt,
) error

CreateRunnerGroupServer creates a long running server to deploy runner groups.

TODO: 1. create a new package to define ErrNotFound, ErrAlreadyExists, ... errors. 2. support configurable timeout.

func DeleteRunnerGroupServer

func DeleteRunnerGroupServer(_ context.Context, kubeconfigPath string) error

DeleteRunnerGroupServer delete existing long running server.

func GetRunnerGroupResult

func GetRunnerGroupResult(ctx context.Context, kubecfgPath string, wait bool) (*types.RunnerGroupsReport, error)

GetRunnerGroupResult gets runner group's aggregated report.

func ListRunnerGroups

func ListRunnerGroups(ctx context.Context, kubeCfgPath string) ([]*types.RunnerGroup, error)

ListRunnerGroups lists RunnerGroups from server.

Types

type RunCmdOpt

type RunCmdOpt func(*runCmdConfig)

RunCmdOpt is used to update default run command's setting.

func WithRunCmdRunnerGroupFlowControl

func WithRunCmdRunnerGroupFlowControl(priorityLevel string, matchingPrecedence int) RunCmdOpt

WithRunCmdRunnerGroupFlowControl updates runner groups' flowcontrol.

func WithRunCmdServerNodeSelectorsOpt

func WithRunCmdServerNodeSelectorsOpt(labels map[string][]string) RunCmdOpt

WithRunCmdServerNodeSelectorsOpt updates server's node selectors.

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server is to deploy runner groups and expose endpoints for runner report.

func NewServer

func NewServer(dataDir string, addrs []string, groups ...*group.Handler) (*Server, error)

NewServer returns new instance of server.

func (*Server) Run

func (s *Server) Run() error

Run is to expose endpoints.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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