controllers

package
v0.0.0-...-da5199a Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SuccessSynced     = "Synced"
	ErrResourceExists = "ErrResourceExists"

	MessageResourceExists = "Resource %q already exists and is not managed by TaskCluster"
	MessageResourceSynced = "TaskCluster synced successfully"
	FieldManager          = controllerAgentName
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TaskClusterController

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

This is a copy of the Kubernetes task-controller, with minor changes to instead reconcile TaskCluster objects.

For the original controller implementation, please see: https://github.com/kubernetes/task-controller/blob/v0.31.1/controller.go

func NewTaskClusterController

func NewTaskClusterController(
	ctx context.Context,
	kubeclientset kubernetes.Interface,
	taskclientset clientset.Interface,
	deploymentInformer appsinformers.DeploymentInformer,
	taskClusterInformer informers.TaskClusterInformer) *TaskClusterController

func (*TaskClusterController) Run

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

type TaskController

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

func NewTaskController

func NewTaskController(
	ctx context.Context,
	kubeclientset kubernetes.Interface,
	taskclientset clientset.Interface,
	taskClusterInformer informers.TaskClusterInformer,
	podInformer coreinformers.PodInformer,
	taskObjectInformer informers.TaskObjectInformer,
	taskInformer informers.TaskInformer) *TaskController

func (*TaskController) Run

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

Jump to

Keyboard shortcuts

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