File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,24 @@ Note that this only changes the name of the share in the SMB protocol.
54
54
Resources created by the operator and other networking aspects may continue to
55
55
reflect the name of the SmbShare resource.
56
56
57
+ # Export a path within a pre-existing PVC.
58
+
59
+ Given a pre-existing PVC `mypvc` containing a directory `exports` which is to be exported as a share.
60
+
61
+ ` ` ` yaml
62
+ apiVersion: samba-operator.samba.org/v1alpha1
63
+ kind: SmbShare
64
+ metadata:
65
+ name: smbshare1
66
+ spec:
67
+ storage:
68
+ pvc:
69
+ name: "mypvc"
70
+ path: "exports"
71
+ readOnly: false
72
+ ` ` `
73
+
74
+ The `path` directive only supports the export of top level directories within the PVC.
57
75
58
76
# Configure a share with custom users
59
77
You can’t perform that action at this time.
0 commit comments