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 <akhil.mohan@mayadata.io>
  • Loading branch information
akhilerm authored and kmova committed Apr 4, 2020
1 parent 47c6c22 commit e8c97f1
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/apis/openebs.io/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/v1alpha1/zz_generated.deepcopy.go

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

4 changes: 4 additions & 0 deletions pkg/internalapis/apis/openebs.io/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

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

6 changes: 6 additions & 0 deletions pkg/internalapis/apis/openebs.io/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 e8c97f1

Please sign in to comment.