Skip to content

Navigation Menu

Sign in
Sign up

DeleteVolumeRequest:A parameter must be added to transfer the PV name of the volume to be deleted #558

Open

Description

Is your feature request related to a problem?/Why is this needed
Currently, the DeleteVolumeRequest is only one parameter VolumeId, which is used to transfer the volume to be deleted. However, this requirement cannot be met in the scenario where PV volumes are preset.
image

for example:
apiVersion: v1
kind: PersistentVolume
metadata:
annotations:
pv.kubernetes.io/provisioned-by: com.localcsi
pv.kubernetes.io/create-by: manual // Identifier Manually Preset
name: pv-test-0
spec:
capacity:
storage: 256Mi
accessModes:

  • ReadWriteOnce
    claimRef:
    apiVersion: v1
    kind: PersistentVolumeClaim
    name: data-test-0
    namespace: default
    persistentVolumeReclaimPolicy: Retain
    volumeMode: Filesystem
    storageClassName: local
    csi:
    driver: com.localcsi
    fsType: ext4
    volumeHandle: caasvg_lv // volumeId
    nodeAffinity:
    required:
    nodeSelectorTerms:
    • matchExpressions:
      • key: kubernetes.io/hostname
        operator: In
        values:
        • master1

apiVersion: v1
kind: PersistentVolume
metadata:
annotations:
pv.kubernetes.io/provisioned-by: com.localcsi
pv.kubernetes.io/create-by: manual // Identifier Manually Preset
name: pv-test-1
spec:
capacity:
storage: 256Mi
accessModes:

  • ReadWriteOnce
    claimRef:
    apiVersion: v1
    kind: PersistentVolumeClaim
    name: data-test-1
    namespace: default
    persistentVolumeReclaimPolicy: Retain
    volumeMode: Filesystem
    storageClassName: local
    csi:
    driver: com.localcsi
    fsType: ext4
    volumeHandle: caasvg_lv // volumeId
    nodeAffinity:
    required:
    nodeSelectorTerms:
    • matchExpressions:
      • key: kubernetes.io/hostname
        operator: In
        values:
        • master2

For the preceding two PVs, if I want to delete the first PV, only one volumeId is sent to me when I invoke the volume deletion interface. but the volumeId of the two PVs is the same and the volume of the node to be deleted cannot be identified.

So raised this issue to add a parameter pvName in DeleteVolumeRequest.

Describe the solution you'd like in detail
image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      AltStyle によって変換されたページ (->オリジナル) /