Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions utils/k8s/openebscrd.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,9 @@ func (k8s K8S) DeleteCStorVolumeReplica(cvrName, namespace string, opts *meta_v1
cvrClient := k8s.OpenebsClientSet.OpenebsV1alpha1().CStorVolumeReplicas(namespace)
return cvrClient.Delete(cvrName, opts)
}

// ListCStorVolume list volume
func (k8s K8S) ListCStorVolume(namespace string, opts meta_v1.ListOptions) (*openebs_v1.CStorVolumeList, error) {
cvrClient := k8s.OpenebsClientSet.OpenebsV1alpha1().CStorVolumes(namespace)
return cvrClient.List(opts)
}