Skip to content

Commit

Permalink
feat(api): add label selector in BDC spec
Browse files Browse the repository at this point in the history
add label selector in BDC spec.

Signed-off-by: Akhil Mohan <[email protected]>
  • Loading branch information
akhilerm authored and kmova committed Apr 4, 2020
1 parent 30ae345 commit 8a9acf3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/apis/openebs.io/ndm/v1alpha1/blockdeviceclaim_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ type BlockDeviceClaim struct {

// DeviceClaimSpec defines the request details for a BlockDevice
type DeviceClaimSpec struct {

// Selector is used to find block devices to be considered for claiming
Selector *metav1.LabelSelector `json:"selector,omitempty"`

// Resources will help with placing claims on Capacity, IOPS
Resources DeviceClaimResources `json:"resources"`

Expand Down
6 changes: 6 additions & 0 deletions pkg/apis/openebs.io/ndm/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8a9acf3

Please sign in to comment.