mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 02:43:36 +00:00
rbd: remove retrieving volumeHandle from PV annotation
we have added clusterID mapping to identify the volumes in case of a failover in Disaster recovery in #1946. with #2314 we are moving to a configuration in configmap for clusterID and poolID mapping. and with #2314 we have all the required information to identify the image mappings. This commit removes the workaround implementation done in #1946. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
committed by
mergify[bot]
parent
e743e06748
commit
50d6ea825c
@ -26,15 +26,6 @@ import (
|
||||
"github.com/ceph/ceph-csi/internal/util/log"
|
||||
)
|
||||
|
||||
const (
|
||||
// PVVolumeHandleAnnotationKey is the annotation key set on the PV object.
|
||||
PVVolumeHandleAnnotationKey = "csi.ceph.io/volume-handle"
|
||||
// PVReplicatedLabelKey is the label key set on PV object.
|
||||
PVReplicatedLabelKey = "csi.ceph.io/replicated-volume"
|
||||
// PVReplicatedLabelValue is the label value set on PV object.
|
||||
PVReplicatedLabelValue = "volume-handle-detected"
|
||||
)
|
||||
|
||||
func validateNonEmptyField(field, fieldName, structName string) error {
|
||||
if field == "" {
|
||||
return fmt.Errorf("value '%s' in '%s' structure cannot be empty", fieldName, structName)
|
||||
|
Reference in New Issue
Block a user