package
3.6.0+incompatible
Repository: https://github.com/openebs/cstor-operators.git
Documentation: pkg.go.dev
# Functions
CheckForCStorPool tries to get pool name and blocks forever because volumereplica can be created only if pool is present.
CheckForCStorVolumeReplicaCRD is Blocking call for checking status of CStorVolumeReplica CRD.
CheckForInitialImportedPoolVol is to check if volume is already imported with pool.
CheckIfPresent is to check if search string is present in array of string.
Init is to instantiate variable used between pool and volumereplica while starting controller.
PoolNameHandler tries to get pool name and blocks for particular number of attempts.
# Constants
AlreadyPresent holds status for corresponding already present resource.
ContinuousZreplRetryInterval is used while controller has started running.
CRDRetryInterval is used if CRD is not present.
DefaultNameSpace namespace `default`.
FailedSynced is used as part of the Event 'reason' when resource sync fails.
FailureCapacitySync holds status for corresponding failed capacity sync of resource.
FailureCreate holds status for corresponding failed create resource.
FailureDestroy holds status for corresponding failed destroy resource.
FailureImported holds status for corresponding imported resource.
FailureImportOperations holds status for corresponding imported resource.
FailureRemoveFinalizer holds the status when the resource's finalizers could not be removed.
FailureStatusSync holds status for corresponding failed status sync of resource.
FailureValidate holds status for corresponding failed validate resource.
InitialZreplRetryInterval is used while initially starting controller.
MessageCreateSynced holds message for corresponding create request sync.
MessageDestroySynced holds message for corresponding destroy request sync.
MessageImproperPoolStatus holds message for corresponding failed validate resource.
MessageModifySynced holds message for corresponding modify request sync.
MessageResourceAlreadyPresent holds message for corresponding already present resource.
MessageResourceCreated holds message for corresponding created resource.
MessageResourceFailCapacitySync holds message for corresponding failed capacity sync of resource.
MessageResourceFailCreate holds message for corresponding failed create resource.
MessageResourceFailDestroy holds descriptive message for resource could not be deleted.
MessageResourceFailStatusSync holds message for corresponding failed status sync of resource.
MessageResourceFailValidate holds message for corresponding failed validate resource.
MessageResourceImported holds message for corresponding imported resource.
MessageResourceSyncFailure holds message for corresponding failed sync of resource.
MessageResourceSyncSuccess holds message for corresponding successful sync of resource.
NoOfPoolWaitAttempts is number of attempts to wait in case of pod/container restarts.
specified in pool instance pods.
OpenEBSIOPoolName is cstorpoolcluster name as environment variable specified in pod instance pods.
PoolNameHandlerInterval is used when expected pool is not present.
PoolWaitInterval is the interval to wait for pod/container restarts.
Different type of operations that can be supported by the controller/watcher logic.
Different type of operations that can be supported by the controller/watcher logic.
Different type of operations that can be supported by the controller/watcher logic.
QOpSync is the operation to reconcile cstor pool resource.
ResourceWorkerInterval is used for resource sync.
SharedInformerInterval is used to sync watcher controller.
StatusSynced holds message for corresponding status request sync.
SuccessCreated holds status for corresponding created resource.
SuccessImported holds status for corresponding imported resource.
ToDo: Improve the messages and event reason.
# Variables
InitialImportedPoolVol is to store pool-volume names while pod restart.
SyncResources is to synchronize pool and volumereplica.
# Structs
QueueLoad represents the payload of the workqueue
It stores the key and corresponding type of operation.
SyncCStorPoolCVR is to hold synchronization related variables.
# Type aliases
Environment is for environment variables passed for cstor-pool-mgmt.
EventReason is used as part of the Event reason when a resource goes through different phases.
QueueOperation determines the type of operation that needs to be executed on the watched resource.