watch

package
v0.0.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResourceTypePod = "pods"
	ResourceTypeSvc = "services"
	ResourceTypeEp  = "endpoints"
	ResourceTypeDP  = "deployments"
)

Variables

This section is empty.

Functions

func SyncPodStatus

func SyncPodStatus(mgr client.K8sClusterInterface, stopChan chan struct{}) (err error)

Types

type AIPodController

type AIPodController struct {
	*Controller
}

func NewAIPodStatusController

func NewAIPodStatusController(cluster *kubernetes.Clientset, namespace, nodeName string) (c *AIPodController)

type Controller

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

Controller demonstrates how to implement a controller with client-go.

func NewController

func NewController(queue workqueue.RateLimitingInterface, indexer cache.Indexer,
	informer cache.Controller, processFunc ProcessNextItem) *Controller

NewController creates a new Controller.

func (*Controller) Run

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

Run begins watching and syncing.

type ProcessNextItem

type ProcessNextItem func() bool

Jump to

Keyboard shortcuts

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