rook / kubectl-rook-ceph

Krew plugin to run kubectl commands with rook-ceph
Apache License 2.0
74 stars 26 forks source link

core: set pv name correctly on subvolume test #288

Closed satoru-takeuchi closed 2 months ago

satoru-takeuchi commented 2 months ago

Description of your changes:

PVC.spec.volumeName is empty if it's not bound to any PV. This problem can be avoided by getting the name after verifying PVC to be bound.

ref. https://github.com/rook/kubectl-rook-ceph/actions/runs/8908445423/job/24464082185?pr=229#step:15:128

+ kubectl get pvc cephfs-pvc-retain
NAME                STATUS    VOLUME   CAPACITY   ACCESS MODES   STORAGECLASS         AGE
cephfs-pvc-retain   Pending                                      rook-cephfs-retain   0s
++ kubectl get pvc cephfs-pvc-retain '-o=jsonpath={.spec.volumeName}'
+ : ''
+ wait_for_pvc_to_be_bound_state_default

Checklist: