File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,21 @@ c.KubeSpawner.slug_scheme = "escape" # no changes from kubespawner 6
103
103
c.KubeSpawner.slug_scheme = " safe" # default for kubespawner 7
104
104
```
105
105
106
+ You can also adjust individual template fields to expand independent of
107
+ configured slug scheme. If you for example previously have mounted a folder
108
+ named ` {username} ` for a single NFS volume with all user's home folders, a
109
+ change of slug scheme could lead to mounting a different folder. To avoid this,
110
+ you can stick with the previous behavior for the volume mount specifically by
111
+ referencing ` {escaped_username} ` instead.
112
+
113
+ ``` python
114
+ c.KubeSpawner.volume_mounts = {
115
+ " name" : " home" ,
116
+ " mountPath" : " /home/jovyan" ,
117
+ " subPath" : " {escaped_username} " , # matches "{username}" in kubespawner 6
118
+ }
119
+ ```
120
+
106
121
The new scheme has the following rules:
107
122
108
123
- the length of any _ single_ template field is limited to 48 characters (the total length of the string is not enforced)
You can’t perform that action at this time.
0 commit comments