profiles

package
v0.0.0-...-907faa4 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

Controller for handling Kubeflow Profiles

func NewController

func NewController(
	profileInformer kubeflowv1informers.ProfileInformer,
	sync profileSyncCallback,
) *Controller

NewController for Profiles creation

func (*Controller) EnqueueProfile

func (c *Controller) EnqueueProfile(obj interface{})

EnqueueProfile takes a Profile resource and converts it into a namespace/name string which is then put onto the work queue. This method should *not* be passed resources of any type other than Profile.

func (*Controller) HandleObject

func (c *Controller) HandleObject(obj interface{})

HandleObject will take any resource implementing metav1.Object and attempt to find the Profile resource that 'owns' it. It does this by looking at the objects metadata.ownerReferences field for an appropriate OwnerReference. It then enqueues that Profile resource to be processed. If the object does not have an appropriate OwnerReference, it will simply be skipped.

func (*Controller) Run

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

Run will set up the event handlers for types we are interested in, as well as syncing informer caches and starting workers. It will block until stopCh is closed, at which point it will shutdown the workqueue and wait for workers to finish processing their current work items.

Jump to

Keyboard shortcuts

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