agent

package
v0.0.0-...-2fafe3c Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SuccessSynced is used as part of the Event 'reason' when a Bar is synced
	SuccessSynced = "Synced"
	// ErrResourceExists is used as part of the Event 'reason' when a Bar fails
	// to sync due to a Deployment of the same name already existing.
	ErrResourceExists = "ErrResourceExists"

	// MessageResourceSynced is the message used for an Event fired when a Bar
	// is synced successfully
	MessageResourceSynced = "Bar synced successfully"
)

Variables

This section is empty.

Functions

func NewController

func NewController(kubeclientset kubernetes.Interface, agentclientset clientset.Interface, kubernetesInformer kuberInformers.SharedInformerFactory, agentInformers informers.SharedInformerFactory) controller.Interface

Types

type Controller

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

这个是Agent工作负载编排的控制器 它的功能: - 创建流水线工作负载的Pod, 并保证工作负载的pod创建成功 - 再时间到了的时候销毁工作负载, 销毁工作负载时,这个工作负载应该是没有任何流水线正在运行的 - 记录工作负载的状态以及包含了那些流水线 - 到容器中执行命令,并且获取日志信息

func (*Controller) Run

func (c *Controller) Run(threadiness int, stopCh <-chan struct{}) error

执行控制器功能

Jump to

Keyboard shortcuts

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