Skip to content

Commit

Permalink
Update driver-parameters.md
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzhangx authored Jun 26, 2022
1 parent e18d737 commit cf4862a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/driver-parameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ kubectl create secret generic smbcreds --from-literal username=USERNAME --from-l
```

### Tips
#### `subDir` parameter supports following pv/pvc metadata transform
> if `subDir` value contains following string, it would transforms into corresponding pv/pvc name or namespace
#### `subDir` parameter supports following pv/pvc metadata convension
> if `subDir` value contains following string, it would be converted into corresponding pv/pvc name or namespace
- `${pvc.metadata.name}`
- `${pvc.metadata.namespace}`
- `${pv.metadata.name}`
Expand All @@ -41,4 +41,4 @@ kubectl create secret generic smbcreds --from-literal username=USERNAME --from-l
kubectl create secret generic smbcreds --from-literal username=USERNAME --from-literal password="PASSWORD" --from-literal mountOptions="dir_mode=0777,file_mode=0777,uid=0,gid=0,mfsymlinks"
```

- set `csi.storage.k8s.io/provisioner-secret-name: "smbcreds"` in storage class
- set `csi.storage.k8s.io/provisioner-secret-name: "smbcreds"` in storage class

0 comments on commit cf4862a

Please sign in to comment.