Skip to content

Commit 84b75b6

Browse files
committed
extraFiles: document configuration in schema.yaml
1 parent 95843cd commit 84b75b6

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

jupyterhub/schema.yaml

+53
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,58 @@ properties:
212212
the `--values` or `-f` flag. During merging, lists are replaced while
213213
dictionaries are updated.
214214
```
215+
extraFiles: &extraFiles
216+
type: string
217+
description: |
218+
A dictionary with extra files that should be injected into the pod's
219+
container.
220+
221+
```yaml
222+
hub:
223+
extraFiles:
224+
<implicit file name>:
225+
# name is an optional way to override the implicit file name
226+
# that must be unique.
227+
name: <explicit file name>
228+
229+
# mode is by default 0644 and you can optionally override it
230+
# either by octal notation (example: 0400) or decimal notation
231+
# (example: 256).
232+
mode: <file system permissions>
233+
234+
# mountPath is required and must be the directory you want to
235+
# mount the file.
236+
mountPath: <directory path>
237+
238+
# Choose one out of the three ways to represent the actual file
239+
# content: data, stringData, or binaryData.
240+
#
241+
# Both stringData and binaryData should be set to a string
242+
# representing the content, where binaryData should be the
243+
# base64 encoding of the actual file content.
244+
#
245+
# data should be set to a mapping (dictionary). It will in the
246+
# end be rendered to either YAML, JSON, or TOML based on the
247+
# filename extension that are required to be either .yaml, .yml,
248+
# .json, or .toml.
249+
#
250+
# If your content is YAML, JSON, or TOML, it can be useful to
251+
# use data over stringData, because then you can update parts of
252+
# the files content from different files as compared to opting
253+
# for one or another string.
254+
#
255+
binaryData: aGVsbG8gd29ybGQhCg==
256+
stringData: |
257+
hello world!
258+
data:
259+
config:
260+
map:
261+
number: 123
262+
string: "hi"
263+
list:
264+
- 1
265+
- 2
266+
```
215267
baseUrl:
216268
type: string
217269
description: |
@@ -1158,6 +1210,7 @@ properties:
11581210
description: |
11591211
Deprecated and no longer does anything. Use the user-scheduler instead
11601212
in order to accomplish a good packing of the user pods.
1213+
extraFiles: *extraFiles
11611214
extraEnv:
11621215
type: object
11631216
description: |

0 commit comments

Comments
 (0)