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
Click to show internal directories.
Click to hide internal directories.