poolcontroller

package
v1.11.0-RC1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2020 License: Apache-2.0 Imports: 31 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsCStorPoolCreateStatuses

func IsCStorPoolCreateStatuses(cstorPool *apis.CStorPool) bool

IsCStorPoolCreateStatuses is to check if the status of cStorPool object is to create pools.

func IsDeletionFailedBefore

func IsDeletionFailedBefore(cStorPool *apis.CStorPool) bool

IsDeletionFailedBefore is to make sure no other operation should happen if the status of cStorPool is deletion-failed.

func IsDestroyEvent

func IsDestroyEvent(cStorPool *apis.CStorPool) bool

IsDestroyEvent is to check if the call is for cStorPool destroy.

func IsEmptyStatus

func IsEmptyStatus(cStorPool *apis.CStorPool) bool

IsEmptyStatus is to check if the status of cStorPool object is empty.

func IsErrorDuplicate

func IsErrorDuplicate(cStorPool *apis.CStorPool) bool

IsErrorDuplicate is to check if the status of cStorPool object is error-duplicate.

func IsOnlyStatusChange

func IsOnlyStatusChange(oldCStorPool, newCStorPool *apis.CStorPool) bool

IsOnlyStatusChange is to check only status change of cStorPool object.

func IsPendingStatus

func IsPendingStatus(cStorPool *apis.CStorPool) bool

IsPendingStatus is to check if the status of cStorPool object is pending.

func IsRightCStorPoolMgmt

func IsRightCStorPoolMgmt(cStorPool *apis.CStorPool) bool

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.

Jump to

Keyboard shortcuts

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