Documentation ¶
Overview ¶
Package watcher ...
Index ¶
Constants ¶
View Source
const ( //IbmCloudGtAPIEndpoint ... IbmCloudGtAPIEndpoint = "IBMCLOUD_GT_API_ENDPOINT" //ReclaimPolicyTag ... ReclaimPolicyTag = "reclaimpolicy:" //NameSpaceTag ... NameSpaceTag = "namespace:" //StorageClassTag ... StorageClassTag = "storageclass:" //PVCNameTag ... PVCNameTag = "pvc:" //PVNameTag ... PVNameTag = "pv:" //VolumeCRN ... VolumeCRN = "volumeCRN" //ProvisionerTag ... ProvisionerTag = "provisioner:" //VolumeStatus ... VolumeStatus = "status" //VolumeStatusCreated ... VolumeStatusCreated = "created" //VolumeStatusDeleted ... VolumeStatusDeleted = "deleted" //VolumeUpdateEventReason ... VolumeUpdateEventReason = "VolumeMetaDataSaved" //VolumeUpdateEventSuccess ... VolumeUpdateEventSuccess = "Success" )
Variables ¶
View Source
var VolumeTypeMap = map[string]string{}
VolumeTypeMap ...
Functions ¶
This section is empty.
Types ¶
type PVWatcher ¶
type PVWatcher struct {
// contains filtered or unexported fields
}
PVWatcher to watch pv creation and add taggs
func New ¶
func New(logger *zap.Logger, provisionerName string, volumeType string, cloudProvider cloudprovider.CloudProviderInterface) *PVWatcher
New creates the Watcher instance
Click to show internal directories.
Click to hide internal directories.