Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(zfspv): adding poolname info to the PV volumeattributes #80

Merged
merged 1 commit into from
Apr 14, 2020

Commits on Apr 13, 2020

  1. feat(zfspv): adding poolname info to the PV volumeattributes

    Now PV will have poolname/parent-dataset info in volume attributes.
    It will help to identify that PV has been create in which zpool.
    
    ```
    $ kubectl describe pv pvc-22d55c56-0c52-4fd5-894c-1f54c4dac5b7
    Name:              pvc-22d55c56-0c52-4fd5-894c-1f54c4dac5b7
    Labels:            <none>
    Annotations:       pv.kubernetes.io/provisioned-by: zfs.csi.openebs.io
    Finalizers:        [kubernetes.io/pv-protection]
    StorageClass:      openebs-zfspv
    Status:            Bound
    Claim:             default/pvcname208
    Reclaim Policy:    Delete
    Access Modes:      RWO
    VolumeMode:        Filesystem
    Capacity:          4Gi
    Node Affinity:
      Required Terms:
        Term 0:        kubernetes.io/hostname in [pawan-2]
    Message:
    Source:
        Type:              CSI (a Container Storage Interface (CSI) volume source)
        Driver:            zfs.csi.openebs.io
        VolumeHandle:      pvc-22d55c56-0c52-4fd5-894c-1f54c4dac5b7
        ReadOnly:          false
        VolumeAttributes:      openebs.io/poolname=zfspv-pool
                               storage.kubernetes.io/csiProvisionerIdentity=1586765686638-8081-zfs.csi.openebs.io
    Events:                <none>
    ```
    Signed-off-by: Pawan <pawan@mayadata.io>
    pawanpraka1 committed Apr 13, 2020
    Configuration menu
    Copy the full SHA
    12b9e85 View commit details
    Browse the repository at this point in the history