forked from cw-ozaki/kubernetes-json-schema
-
Notifications
You must be signed in to change notification settings - Fork 0
/
downwardapivolumefile.json
76 lines (76 loc) · 2.28 KB
/
downwardapivolumefile.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{
"description": "DownwardAPIVolumeFile represents information to create the file containing the pod field",
"required": [
"path"
],
"properties": {
"fieldRef": {
"description": "ObjectFieldSelector selects an APIVersioned field of an object.",
"required": [
"fieldPath"
],
"properties": {
"apiVersion": {
"description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".",
"type": [
"string",
"null"
]
},
"fieldPath": {
"description": "Path of the field to select in the specified API version.",
"type": "string"
}
},
"additionalProperties": false
},
"mode": {
"description": "Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.",
"type": "integer",
"format": "int32"
},
"path": {
"description": "Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'",
"type": [
"string",
"null"
]
},
"resourceFieldRef": {
"description": "ResourceFieldSelector represents container resources (cpu, memory) and their output format",
"required": [
"resource"
],
"properties": {
"containerName": {
"description": "Container name: required for volumes, optional for env vars",
"type": [
"string",
"null"
]
},
"divisor": {
"oneOf": [
{
"type": [
"string",
"null"
]
},
{
"type": "integer"
}
]
},
"resource": {
"description": "Required: resource to select",
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/schema#",
"type": "object"
}