diff --git a/pkg/apis/openebs.io/ndm/v1alpha1/blockdeviceclaim_types.go b/pkg/apis/openebs.io/ndm/v1alpha1/blockdeviceclaim_types.go index ba3a7a4eaa..7b5bf65364 100644 --- a/pkg/apis/openebs.io/ndm/v1alpha1/blockdeviceclaim_types.go +++ b/pkg/apis/openebs.io/ndm/v1alpha1/blockdeviceclaim_types.go @@ -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"` diff --git a/pkg/apis/openebs.io/ndm/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/openebs.io/ndm/v1alpha1/zz_generated.deepcopy.go index a527371138..8f032c47d9 100644 --- a/pkg/apis/openebs.io/ndm/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/apis/openebs.io/ndm/v1alpha1/zz_generated.deepcopy.go @@ -22,6 +22,7 @@ package v1alpha1 import ( v1 "k8s.io/api/core/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) @@ -221,6 +222,11 @@ func (in *DeviceClaimResources) DeepCopy() *DeviceClaimResources { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *DeviceClaimSpec) DeepCopyInto(out *DeviceClaimSpec) { *out = *in + if in.Selector != nil { + in, out := &in.Selector, &out.Selector + *out = new(metav1.LabelSelector) + (*in).DeepCopyInto(*out) + } in.Resources.DeepCopyInto(&out.Resources) out.Details = in.Details out.BlockDeviceNodeAttributes = in.BlockDeviceNodeAttributes