Skip to content

Commit

Permalink
Update csi-dev.md
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzhangx authored Apr 12, 2021
1 parent 924af5c commit a263f89
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions docs/csi-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ $ make
- Run verification test before submitting code
```console
$ make verify
```

- If there is config file changed under `charts` directory, run following command to update chart file
```console
helm package charts/latest/csi-driver-smb -d charts/latest/
```

## How to test CSI driver in local environment
Expand Down Expand Up @@ -47,17 +52,17 @@ $ csc node stage --endpoint tcp://127.0.0.1:10000 --cap 1,block --staging-target
```

#### 3. Publish a SMB volume on a node (bind mount the volume from staging to target path)
```
```console
$ csc node publish --endpoint tcp://127.0.0.1:10000 --cap 1,block --staging-target-path=/tmp/staging-path --target-path=/tmp/publish-path volumeid
```

#### 4. Unpublish a SMB volume on a node
```
```console
$ csc node unpublish --endpoint tcp://127.0.0.1:10000 --target-path=/tmp/publish-path volumeid
```

#### 5. Unstage a SMB volume on a node
```
```console
$ csc node unstage --endpoint tcp://127.0.0.1:10000 --staging-target-path=/tmp/staging-path volumeid
```

Expand Down

0 comments on commit a263f89

Please sign in to comment.