-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(localpv-device): allow local pv device on select devices (#1648)
Ref: openebs/openebs#2916 This PR makes use of the Label Selector capability added in the BDC. More details: openebs/openebs#2921 The BDC Label Selector feature makes it possible for administrators to group a set of block devices and use them for creating Local PV (device). To use the Label Selector feature with Local PV (Devices) the administrator is expected to group(or pool) a set of block devices by assigning them the label: openebs.io/block-device-tag=< tag-x >. The `<tag-x>` can be passed to Local PV storage class via cas annotations `BlockDeviceTag`. If the value is present, then Local PV device provisioner will set the following additional selector on the BDC: `openebs.io/block-device-tag=< tag-x >` Signed-off-by: kmova <kiran.mova@mayadata.io>
- Loading branch information
Showing
7 changed files
with
197 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Local PV Provisioner BDD | ||
|
||
Local PV Provisioner BDD tests are developed using ginkgo & gomega libraries. | ||
|
||
## How to run the tests? | ||
|
||
### Pre-requisites | ||
|
||
- Install Ginkgo and Gomega on your development machine. | ||
``` | ||
$ go get github.com/onsi/ginkgo/ginkgo | ||
$ go get github.com/onsi/gomega/... | ||
``` | ||
- Get your Kubernetes Cluster ready and make sure you can run | ||
kubectl from your development machine. | ||
Note down the path to the `kubeconfig` file used by kubectl | ||
to access your cluster. Example: /home/<user>/.kube/config | ||
|
||
- (Optional) Set the KUBECONFIG environment variable on your | ||
development machine to point to the kubeconfig file. | ||
Example: KUBECONFIG=/home/<user>/.kube/config | ||
|
||
If you do not set this ENV, you will have to pass the file | ||
to the ginkgo CLI | ||
|
||
- Some of the tests require block devices (that are not mounted) | ||
to be available in the cluster. | ||
|
||
- Install required OpenEBS components. | ||
Example: `kubectl apply -f openebs-operator.yaml` | ||
|
||
### Run tests | ||
|
||
- Run the tests by being in the localpv tests folder. | ||
`$ cd $GOPATH/src/github.com/openebs/maya/tests/localpv/` | ||
`$ ginkgo -v --` | ||
|
||
In case the KUBECONFIG env is not configured, you can run: | ||
`$ ginkgo -v -- -kubeconfig=/path/to/kubeconfig` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters