v1.12.1 Latest Latest

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

Go to latest
Published: Sep 11, 2020 License: Apache-2.0 Imports: 28 Imported by: 1




This section is empty.


This section is empty.


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.


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.

Jump to

Keyboard shortcuts

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