Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsDestroyEvent ¶
func IsDestroyEvent(cStorVolume *apis.CStorVolume) bool
IsDestroyEvent is to check if the call is for cStorVolume destroy.
func IsOnlyStatusChange ¶
func IsOnlyStatusChange(oldCStorVolume, newCStorVolume *apis.CStorVolume) bool
IsOnlyStatusChange is to check only status change of cStorVolume object.
func IsValidCStorVolumeMgmt ¶
func IsValidCStorVolumeMgmt(cStorVolume *apis.CStorVolume) bool
IsValidCStorVolumeMgmt is to check if the volume request is for particular pod/application.
Types ¶
type CStorVolumeController ¶
type CStorVolumeController struct {
// contains filtered or unexported fields
}
CStorVolumeController is the controller implementation for CStorVolume resources.
func NewCStorVolumeController ¶
func NewCStorVolumeController( kubeclientset kubernetes.Interface, clientset clientset.Interface, kubeInformerFactory kubeinformers.SharedInformerFactory, cStorInformerFactory informers.SharedInformerFactory) *CStorVolumeController
NewCStorVolumeController returns a new instance of CStorVolume controller
func (*CStorVolumeController) Run ¶
func (c *CStorVolumeController) 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.