controller

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertInstanceToJob

func ConvertInstanceToJob(ins *types.Instance) (job string, err error)

func ConvertJobToInstance

func ConvertJobToInstance(job string) (ins *types.Instance, err error)

Types

type WorkerController

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

WorkerController is responsible for synchronizing job objects stored in the system with actual running replica sets and pods.

func NewWorkerController

func NewWorkerController(kubeConfig string) (*WorkerController, error)

NewWorkerController creates a new WorkerController.

func (*WorkerController) Run

func (c *WorkerController) Run(ctx context.Context, workers int)

Run begins watching and syncing.

Jump to

Keyboard shortcuts

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