Documentation ¶
Index ¶
- func IsCStorPoolCreateStatuses(cstorPool *apis.CStorPool) bool
- func IsDeletionFailedBefore(cStorPool *apis.CStorPool) bool
- func IsDestroyEvent(cStorPool *apis.CStorPool) bool
- func IsEmptyStatus(cStorPool *apis.CStorPool) bool
- func IsErrorDuplicate(cStorPool *apis.CStorPool) bool
- func IsOnlyStatusChange(oldCStorPool, newCStorPool *apis.CStorPool) bool
- func IsPendingStatus(cStorPool *apis.CStorPool) bool
- func IsRightCStorPoolMgmt(cStorPool *apis.CStorPool) bool
- type CStorPoolController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsCStorPoolCreateStatuses ¶
IsCStorPoolCreateStatuses is to check if the status of cStorPool object is to create pools.
func IsDeletionFailedBefore ¶
IsDeletionFailedBefore is to make sure no other operation should happen if the status of cStorPool is deletion-failed.
func IsDestroyEvent ¶
IsDestroyEvent is to check if the call is for cStorPool destroy.
func IsEmptyStatus ¶
IsEmptyStatus is to check if the status of cStorPool object is empty.
func IsErrorDuplicate ¶
IsErrorDuplicate is to check if the status of cStorPool object is error-duplicate.
func IsOnlyStatusChange ¶
IsOnlyStatusChange is to check only status change of cStorPool object.
func IsPendingStatus ¶
IsPendingStatus is to check if the status of cStorPool object is pending.
func IsRightCStorPoolMgmt ¶
IsRightCStorPoolMgmt is to check if the pool request is for particular pod/application.
Types ¶
type CStorPoolController ¶
type CStorPoolController struct {
// contains filtered or unexported fields
}
CStorPoolController is the controller implementation for CStorPool resources.
func NewCStorPoolController ¶
func NewCStorPoolController( kubeclientset kubernetes.Interface, clientset clientset.Interface, kubeInformerFactory kubeinformers.SharedInformerFactory, cStorInformerFactory informers.SharedInformerFactory) *CStorPoolController
NewCStorPoolController returns a new instance of CStorPool controller
func (*CStorPoolController) Run ¶
func (c *CStorPoolController) 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.