replicacontroller

package
Version: v1.12.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDeletionFailedBefore

func IsDeletionFailedBefore(cvrObj *apis.CStorVolumeReplica) bool

IsDeletionFailedBefore flags if status of cvr is CVRStatusDeletionFailed

func IsDestroyEvent

func IsDestroyEvent(cVR *apis.CStorVolumeReplica) bool

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

func IsEmptyStatus

func IsEmptyStatus(cVR *apis.CStorVolumeReplica) bool

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

func IsInitStatus

func IsInitStatus(cVR *apis.CStorVolumeReplica) bool

IsInitStatus is to check if the status of cStorVolumeReplica object is pending.

func IsOnlineStatus

func IsOnlineStatus(cVR *apis.CStorVolumeReplica) bool

IsOnlineStatus is to check if the status of cStorVolumeReplica object is Healthy.

func IsOnlyStatusChange

func IsOnlyStatusChange(oldCVR, newCVR *apis.CStorVolumeReplica) bool

IsOnlyStatusChange is to check only status change of cStorVolumeReplica object.

func IsRecreateStatus

func IsRecreateStatus(cVR *apis.CStorVolumeReplica) bool

IsRecreateStatus is to check if the status of cStorVolumeReplica object is in recreated state.

func IsRightCStorVolumeReplica

func IsRightCStorVolumeReplica(cVR *apis.CStorVolumeReplica) bool

IsRightCStorVolumeReplica is to check if the cvr request is for particular pod/application.

Types

type CStorVolumeReplicaController

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

CStorVolumeReplicaController is the controller for CVR resources.

func NewCStorVolumeReplicaController

func NewCStorVolumeReplicaController(
	kubeclientset kubernetes.Interface,
	clientset clientset.Interface,
	kubeInformerFactory kubeinformers.SharedInformerFactory,
	cStorInformerFactory informers.SharedInformerFactory,
) *CStorVolumeReplicaController

NewCStorVolumeReplicaController returns a new instance of CVR controller

func (*CStorVolumeReplicaController) Run

func (c *CStorVolumeReplicaController) 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.

type CVRPatch

type CVRPatch struct {
	// Op defines the operation
	Op string `json:"op"`
	// Path defines the key path
	// eg. for
	// {
	//  	"Name": "openebs"
	//	    Category: {
	//		  "Inclusive": "v1",
	//		  "Rank": "A"
	//	     }
	// }
	// The path of 'Inclusive' would be
	// "/Name/Category/Inclusive"
	Path  string `json:"path"`
	Value string `json:"value"`
}

CVRPatch struct represent the struct used to patch the cvr object

Jump to

Keyboard shortcuts

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