mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
util: add CSIDriver.GetInstanceID()
There has been some confusion about using different variables for the InstanceID of the RBD-driver. By removing the global variable CSIInstanceID, there should be no confusion anymore what variable to use. Signed-off-by: Niels de Vos <ndevos@ibm.com>
This commit is contained in:
committed by
mergify[bot]
parent
0092a47586
commit
dfb48bac17
@ -39,6 +39,7 @@ type Config struct {
|
||||
DriverName string
|
||||
Namespace string
|
||||
ClusterName string
|
||||
InstanceID string
|
||||
SetMetadata bool
|
||||
}
|
||||
|
||||
|
@ -189,6 +189,7 @@ func (r *ReconcilePersistentVolume) reconcilePV(ctx context.Context, obj runtime
|
||||
requestName,
|
||||
pvcNamespace,
|
||||
r.config.ClusterName,
|
||||
r.config.InstanceID,
|
||||
r.config.SetMetadata,
|
||||
cr)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user