kubernetes_schemas 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (123) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +8 -0
  3. data/Gemfile +6 -0
  4. data/README.md +35 -0
  5. data/Rakefile +28 -0
  6. data/bin/console +14 -0
  7. data/bin/setup +8 -0
  8. data/kubernetes_schemas.gemspec +30 -0
  9. data/lib/kubernetes_schemas/kubernetes_versions.rb +3 -0
  10. data/lib/kubernetes_schemas/version.rb +3 -0
  11. data/lib/kubernetes_schemas.rb +33 -0
  12. data/schemas/1.22/apigroup.json +119 -0
  13. data/schemas/1.22/apigrouplist.json +156 -0
  14. data/schemas/1.22/apiresourcelist.json +138 -0
  15. data/schemas/1.22/apiservice.json +431 -0
  16. data/schemas/1.22/apiservicelist.json +512 -0
  17. data/schemas/1.22/apiversions.json +76 -0
  18. data/schemas/1.22/binding.json +344 -0
  19. data/schemas/1.22/certificatesigningrequest.json +457 -0
  20. data/schemas/1.22/certificatesigningrequestlist.json +535 -0
  21. data/schemas/1.22/clusterrole.json +445 -0
  22. data/schemas/1.22/clusterrolebinding.json +355 -0
  23. data/schemas/1.22/clusterrolebindinglist.json +433 -0
  24. data/schemas/1.22/clusterrolelist.json +526 -0
  25. data/schemas/1.22/componentstatus.json +326 -0
  26. data/schemas/1.22/componentstatuslist.json +407 -0
  27. data/schemas/1.22/configmap.json +316 -0
  28. data/schemas/1.22/configmaplist.json +397 -0
  29. data/schemas/1.22/controllerrevision.json +300 -0
  30. data/schemas/1.22/controllerrevisionlist.json +378 -0
  31. data/schemas/1.22/cronjob.json +9720 -0
  32. data/schemas/1.22/cronjoblist.json +9801 -0
  33. data/schemas/1.22/csidriver.json +375 -0
  34. data/schemas/1.22/csidriverlist.json +453 -0
  35. data/schemas/1.22/csinode.json +354 -0
  36. data/schemas/1.22/csinodelist.json +432 -0
  37. data/schemas/1.22/csistoragecapacity.json +390 -0
  38. data/schemas/1.22/csistoragecapacitylist.json +472 -0
  39. data/schemas/1.22/daemonset.json +9453 -0
  40. data/schemas/1.22/daemonsetlist.json +9534 -0
  41. data/schemas/1.22/deleteoptions.json +334 -0
  42. data/schemas/1.22/deployment.json +9474 -0
  43. data/schemas/1.22/deploymentlist.json +9555 -0
  44. data/schemas/1.22/endpoints.json +538 -0
  45. data/schemas/1.22/endpointslice.json +519 -0
  46. data/schemas/1.22/endpointslicelist.json +594 -0
  47. data/schemas/1.22/endpointslist.json +619 -0
  48. data/schemas/1.22/event.json +523 -0
  49. data/schemas/1.22/eventlist.json +601 -0
  50. data/schemas/1.22/eviction.json +618 -0
  51. data/schemas/1.22/flowschema.json +619 -0
  52. data/schemas/1.22/flowschemalist.json +700 -0
  53. data/schemas/1.22/horizontalpodautoscaler.json +1770 -0
  54. data/schemas/1.22/horizontalpodautoscalerlist.json +1851 -0
  55. data/schemas/1.22/ingress.json +638 -0
  56. data/schemas/1.22/ingressclass.json +340 -0
  57. data/schemas/1.22/ingressclasslist.json +421 -0
  58. data/schemas/1.22/ingresslist.json +719 -0
  59. data/schemas/1.22/job.json +9470 -0
  60. data/schemas/1.22/joblist.json +9551 -0
  61. data/schemas/1.22/lease.json +330 -0
  62. data/schemas/1.22/leaselist.json +411 -0
  63. data/schemas/1.22/limitrange.json +429 -0
  64. data/schemas/1.22/limitrangelist.json +510 -0
  65. data/schemas/1.22/localsubjectaccessreview.json +458 -0
  66. data/schemas/1.22/mutatingwebhookconfiguration.json +617 -0
  67. data/schemas/1.22/mutatingwebhookconfigurationlist.json +698 -0
  68. data/schemas/1.22/namespace.json +370 -0
  69. data/schemas/1.22/namespacelist.json +451 -0
  70. data/schemas/1.22/networkpolicy.json +850 -0
  71. data/schemas/1.22/networkpolicylist.json +931 -0
  72. data/schemas/1.22/node.json +905 -0
  73. data/schemas/1.22/nodelist.json +986 -0
  74. data/schemas/1.22/persistentvolume.json +1775 -0
  75. data/schemas/1.22/persistentvolumeclaim.json +614 -0
  76. data/schemas/1.22/persistentvolumeclaimlist.json +695 -0
  77. data/schemas/1.22/persistentvolumelist.json +1856 -0
  78. data/schemas/1.22/pod.json +9911 -0
  79. data/schemas/1.22/poddisruptionbudget.json +505 -0
  80. data/schemas/1.22/poddisruptionbudgetlist.json +586 -0
  81. data/schemas/1.22/podlist.json +9992 -0
  82. data/schemas/1.22/podsecuritypolicy.json +797 -0
  83. data/schemas/1.22/podsecuritypolicylist.json +878 -0
  84. data/schemas/1.22/podtemplate.json +9180 -0
  85. data/schemas/1.22/podtemplatelist.json +9261 -0
  86. data/schemas/1.22/priorityclass.json +314 -0
  87. data/schemas/1.22/priorityclasslist.json +392 -0
  88. data/schemas/1.22/prioritylevelconfiguration.json +445 -0
  89. data/schemas/1.22/prioritylevelconfigurationlist.json +526 -0
  90. data/schemas/1.22/replicaset.json +9372 -0
  91. data/schemas/1.22/replicasetlist.json +9453 -0
  92. data/schemas/1.22/replicationcontroller.json +9320 -0
  93. data/schemas/1.22/replicationcontrollerlist.json +9401 -0
  94. data/schemas/1.22/resourcequota.json +433 -0
  95. data/schemas/1.22/resourcequotalist.json +514 -0
  96. data/schemas/1.22/role.json +363 -0
  97. data/schemas/1.22/rolebinding.json +355 -0
  98. data/schemas/1.22/rolebindinglist.json +433 -0
  99. data/schemas/1.22/rolelist.json +444 -0
  100. data/schemas/1.22/runtimeclass.json +400 -0
  101. data/schemas/1.22/runtimeclasslist.json +478 -0
  102. data/schemas/1.22/scale.json +323 -0
  103. data/schemas/1.22/secret.json +323 -0
  104. data/schemas/1.22/secretlist.json +404 -0
  105. data/schemas/1.22/selfsubjectaccessreview.json +412 -0
  106. data/schemas/1.22/selfsubjectrulesreview.json +430 -0
  107. data/schemas/1.22/service.json +688 -0
  108. data/schemas/1.22/serviceaccount.json +381 -0
  109. data/schemas/1.22/serviceaccountlist.json +462 -0
  110. data/schemas/1.22/servicelist.json +769 -0
  111. data/schemas/1.22/statefulset.json +10076 -0
  112. data/schemas/1.22/statefulsetlist.json +10157 -0
  113. data/schemas/1.22/status.json +180 -0
  114. data/schemas/1.22/storageclass.json +391 -0
  115. data/schemas/1.22/storageclasslist.json +469 -0
  116. data/schemas/1.22/subjectaccessreview.json +458 -0
  117. data/schemas/1.22/tokenreview.json +405 -0
  118. data/schemas/1.22/validatingwebhookconfiguration.json +610 -0
  119. data/schemas/1.22/validatingwebhookconfigurationlist.json +691 -0
  120. data/schemas/1.22/volumeattachment.json +1860 -0
  121. data/schemas/1.22/volumeattachmentlist.json +1938 -0
  122. data/schemas/1.22/watchevent.json +276 -0
  123. metadata +207 -0
@@ -0,0 +1,797 @@
1
+ {
2
+ "description": "PodSecurityPolicy governs the ability to make requests that affect the Security Context that will be applied to a pod and container. Deprecated in 1.21.",
3
+ "type": "object",
4
+ "properties": {
5
+ "apiVersion": {
6
+ "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
7
+ "type": [
8
+ "string",
9
+ "null"
10
+ ]
11
+ },
12
+ "kind": {
13
+ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
14
+ "type": [
15
+ "string",
16
+ "null"
17
+ ],
18
+ "enum": [
19
+ "PodSecurityPolicy"
20
+ ]
21
+ },
22
+ "metadata": {
23
+ "description": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.",
24
+ "type": [
25
+ "object",
26
+ "null"
27
+ ],
28
+ "properties": {
29
+ "annotations": {
30
+ "description": "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations",
31
+ "type": [
32
+ "object",
33
+ "null"
34
+ ],
35
+ "additionalProperties": {
36
+ "type": [
37
+ "string",
38
+ "null"
39
+ ]
40
+ }
41
+ },
42
+ "clusterName": {
43
+ "description": "The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request.",
44
+ "type": [
45
+ "string",
46
+ "null"
47
+ ]
48
+ },
49
+ "creationTimestamp": {
50
+ "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.",
51
+ "type": [
52
+ "string",
53
+ "null"
54
+ ],
55
+ "format": "date-time"
56
+ },
57
+ "deletionGracePeriodSeconds": {
58
+ "description": "Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.",
59
+ "type": [
60
+ "integer",
61
+ "null"
62
+ ],
63
+ "format": "int64"
64
+ },
65
+ "deletionTimestamp": {
66
+ "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.",
67
+ "type": [
68
+ "string",
69
+ "null"
70
+ ],
71
+ "format": "date-time"
72
+ },
73
+ "finalizers": {
74
+ "description": "Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list.",
75
+ "type": [
76
+ "array",
77
+ "null"
78
+ ],
79
+ "items": {
80
+ "type": [
81
+ "string",
82
+ "null"
83
+ ]
84
+ },
85
+ "x-kubernetes-patch-strategy": "merge"
86
+ },
87
+ "generateName": {
88
+ "description": "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency",
89
+ "type": [
90
+ "string",
91
+ "null"
92
+ ]
93
+ },
94
+ "generation": {
95
+ "description": "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.",
96
+ "type": [
97
+ "integer",
98
+ "null"
99
+ ],
100
+ "format": "int64"
101
+ },
102
+ "labels": {
103
+ "description": "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels",
104
+ "type": [
105
+ "object",
106
+ "null"
107
+ ],
108
+ "additionalProperties": {
109
+ "type": [
110
+ "string",
111
+ "null"
112
+ ]
113
+ }
114
+ },
115
+ "managedFields": {
116
+ "description": "ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object.",
117
+ "type": [
118
+ "array",
119
+ "null"
120
+ ],
121
+ "items": {
122
+ "description": "ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.",
123
+ "type": [
124
+ "object",
125
+ "null"
126
+ ],
127
+ "properties": {
128
+ "apiVersion": {
129
+ "description": "APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted.",
130
+ "type": [
131
+ "string",
132
+ "null"
133
+ ]
134
+ },
135
+ "fieldsType": {
136
+ "description": "FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\"",
137
+ "type": [
138
+ "string",
139
+ "null"
140
+ ]
141
+ },
142
+ "fieldsV1": {
143
+ "description": "FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.\n\nEach key is either a '.' representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: 'f:<name>', where <name> is the name of a field in a struct, or key in a map 'v:<value>', where <value> is the exact json formatted value of a list item 'i:<index>', where <index> is position of a item in a list 'k:<keys>', where <keys> is a map of a list item's key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set.\n\nThe exact format is defined in sigs.k8s.io/structured-merge-diff",
144
+ "type": [
145
+ "object",
146
+ "null"
147
+ ]
148
+ },
149
+ "manager": {
150
+ "description": "Manager is an identifier of the workflow managing these fields.",
151
+ "type": [
152
+ "string",
153
+ "null"
154
+ ]
155
+ },
156
+ "operation": {
157
+ "description": "Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'.",
158
+ "type": [
159
+ "string",
160
+ "null"
161
+ ]
162
+ },
163
+ "subresource": {
164
+ "description": "Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource.",
165
+ "type": [
166
+ "string",
167
+ "null"
168
+ ]
169
+ },
170
+ "time": {
171
+ "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.",
172
+ "type": [
173
+ "string",
174
+ "null"
175
+ ],
176
+ "format": "date-time"
177
+ }
178
+ }
179
+ }
180
+ },
181
+ "name": {
182
+ "description": "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names",
183
+ "type": [
184
+ "string",
185
+ "null"
186
+ ]
187
+ },
188
+ "namespace": {
189
+ "description": "Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces",
190
+ "type": [
191
+ "string",
192
+ "null"
193
+ ]
194
+ },
195
+ "ownerReferences": {
196
+ "description": "List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.",
197
+ "type": [
198
+ "array",
199
+ "null"
200
+ ],
201
+ "items": {
202
+ "description": "OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.",
203
+ "type": [
204
+ "object",
205
+ "null"
206
+ ],
207
+ "required": [
208
+ "apiVersion",
209
+ "kind",
210
+ "name",
211
+ "uid"
212
+ ],
213
+ "properties": {
214
+ "apiVersion": {
215
+ "description": "API version of the referent.",
216
+ "type": "string"
217
+ },
218
+ "blockOwnerDeletion": {
219
+ "description": "If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.",
220
+ "type": [
221
+ "boolean",
222
+ "null"
223
+ ]
224
+ },
225
+ "controller": {
226
+ "description": "If true, this reference points to the managing controller.",
227
+ "type": [
228
+ "boolean",
229
+ "null"
230
+ ]
231
+ },
232
+ "kind": {
233
+ "description": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
234
+ "type": "string"
235
+ },
236
+ "name": {
237
+ "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names",
238
+ "type": "string"
239
+ },
240
+ "uid": {
241
+ "description": "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids",
242
+ "type": "string"
243
+ }
244
+ },
245
+ "x-kubernetes-map-type": "atomic"
246
+ },
247
+ "x-kubernetes-patch-merge-key": "uid",
248
+ "x-kubernetes-patch-strategy": "merge"
249
+ },
250
+ "resourceVersion": {
251
+ "description": "An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency",
252
+ "type": [
253
+ "string",
254
+ "null"
255
+ ]
256
+ },
257
+ "selfLink": {
258
+ "description": "SelfLink is a URL representing this object. Populated by the system. Read-only.\n\nDEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release.",
259
+ "type": [
260
+ "string",
261
+ "null"
262
+ ]
263
+ },
264
+ "uid": {
265
+ "description": "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids",
266
+ "type": [
267
+ "string",
268
+ "null"
269
+ ]
270
+ }
271
+ }
272
+ },
273
+ "spec": {
274
+ "description": "PodSecurityPolicySpec defines the policy enforced.",
275
+ "type": [
276
+ "object",
277
+ "null"
278
+ ],
279
+ "required": [
280
+ "seLinux",
281
+ "runAsUser",
282
+ "supplementalGroups",
283
+ "fsGroup"
284
+ ],
285
+ "properties": {
286
+ "allowPrivilegeEscalation": {
287
+ "description": "allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true.",
288
+ "type": [
289
+ "boolean",
290
+ "null"
291
+ ]
292
+ },
293
+ "allowedCSIDrivers": {
294
+ "description": "AllowedCSIDrivers is an allowlist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. This is a beta field, and is only honored if the API server enables the CSIInlineVolume feature gate.",
295
+ "type": [
296
+ "array",
297
+ "null"
298
+ ],
299
+ "items": {
300
+ "description": "AllowedCSIDriver represents a single inline CSI Driver that is allowed to be used.",
301
+ "type": [
302
+ "object",
303
+ "null"
304
+ ],
305
+ "required": [
306
+ "name"
307
+ ],
308
+ "properties": {
309
+ "name": {
310
+ "description": "Name is the registered name of the CSI driver",
311
+ "type": "string"
312
+ }
313
+ }
314
+ }
315
+ },
316
+ "allowedCapabilities": {
317
+ "description": "allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities.",
318
+ "type": [
319
+ "array",
320
+ "null"
321
+ ],
322
+ "items": {
323
+ "type": [
324
+ "string",
325
+ "null"
326
+ ]
327
+ }
328
+ },
329
+ "allowedFlexVolumes": {
330
+ "description": "allowedFlexVolumes is an allowlist of Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the \"volumes\" field.",
331
+ "type": [
332
+ "array",
333
+ "null"
334
+ ],
335
+ "items": {
336
+ "description": "AllowedFlexVolume represents a single Flexvolume that is allowed to be used.",
337
+ "type": [
338
+ "object",
339
+ "null"
340
+ ],
341
+ "required": [
342
+ "driver"
343
+ ],
344
+ "properties": {
345
+ "driver": {
346
+ "description": "driver is the name of the Flexvolume driver.",
347
+ "type": "string"
348
+ }
349
+ }
350
+ }
351
+ },
352
+ "allowedHostPaths": {
353
+ "description": "allowedHostPaths is an allowlist of host paths. Empty indicates that all host paths may be used.",
354
+ "type": [
355
+ "array",
356
+ "null"
357
+ ],
358
+ "items": {
359
+ "description": "AllowedHostPath defines the host volume conditions that will be enabled by a policy for pods to use. It requires the path prefix to be defined.",
360
+ "type": [
361
+ "object",
362
+ "null"
363
+ ],
364
+ "properties": {
365
+ "pathPrefix": {
366
+ "description": "pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path.\n\nExamples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo`",
367
+ "type": [
368
+ "string",
369
+ "null"
370
+ ]
371
+ },
372
+ "readOnly": {
373
+ "description": "when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.",
374
+ "type": [
375
+ "boolean",
376
+ "null"
377
+ ]
378
+ }
379
+ }
380
+ }
381
+ },
382
+ "allowedProcMountTypes": {
383
+ "description": "AllowedProcMountTypes is an allowlist of allowed ProcMountTypes. Empty or nil indicates that only the DefaultProcMountType may be used. This requires the ProcMountType feature flag to be enabled.",
384
+ "type": [
385
+ "array",
386
+ "null"
387
+ ],
388
+ "items": {
389
+ "type": [
390
+ "string",
391
+ "null"
392
+ ]
393
+ }
394
+ },
395
+ "allowedUnsafeSysctls": {
396
+ "description": "allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. Kubelet has to allowlist all allowed unsafe sysctls explicitly to avoid rejection.\n\nExamples: e.g. \"foo/*\" allows \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" allows \"foo.bar\", \"foo.baz\", etc.",
397
+ "type": [
398
+ "array",
399
+ "null"
400
+ ],
401
+ "items": {
402
+ "type": [
403
+ "string",
404
+ "null"
405
+ ]
406
+ }
407
+ },
408
+ "defaultAddCapabilities": {
409
+ "description": "defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list.",
410
+ "type": [
411
+ "array",
412
+ "null"
413
+ ],
414
+ "items": {
415
+ "type": [
416
+ "string",
417
+ "null"
418
+ ]
419
+ }
420
+ },
421
+ "defaultAllowPrivilegeEscalation": {
422
+ "description": "defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process.",
423
+ "type": [
424
+ "boolean",
425
+ "null"
426
+ ]
427
+ },
428
+ "forbiddenSysctls": {
429
+ "description": "forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden.\n\nExamples: e.g. \"foo/*\" forbids \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" forbids \"foo.bar\", \"foo.baz\", etc.",
430
+ "type": [
431
+ "array",
432
+ "null"
433
+ ],
434
+ "items": {
435
+ "type": [
436
+ "string",
437
+ "null"
438
+ ]
439
+ }
440
+ },
441
+ "fsGroup": {
442
+ "description": "FSGroupStrategyOptions defines the strategy type and options used to create the strategy.",
443
+ "type": "object",
444
+ "properties": {
445
+ "ranges": {
446
+ "description": "ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs.",
447
+ "type": [
448
+ "array",
449
+ "null"
450
+ ],
451
+ "items": {
452
+ "description": "IDRange provides a min/max of an allowed range of IDs.",
453
+ "type": [
454
+ "object",
455
+ "null"
456
+ ],
457
+ "required": [
458
+ "min",
459
+ "max"
460
+ ],
461
+ "properties": {
462
+ "max": {
463
+ "description": "max is the end of the range, inclusive.",
464
+ "type": "integer",
465
+ "format": "int64"
466
+ },
467
+ "min": {
468
+ "description": "min is the start of the range, inclusive.",
469
+ "type": "integer",
470
+ "format": "int64"
471
+ }
472
+ }
473
+ }
474
+ },
475
+ "rule": {
476
+ "description": "rule is the strategy that will dictate what FSGroup is used in the SecurityContext.",
477
+ "type": [
478
+ "string",
479
+ "null"
480
+ ]
481
+ }
482
+ }
483
+ },
484
+ "hostIPC": {
485
+ "description": "hostIPC determines if the policy allows the use of HostIPC in the pod spec.",
486
+ "type": [
487
+ "boolean",
488
+ "null"
489
+ ]
490
+ },
491
+ "hostNetwork": {
492
+ "description": "hostNetwork determines if the policy allows the use of HostNetwork in the pod spec.",
493
+ "type": [
494
+ "boolean",
495
+ "null"
496
+ ]
497
+ },
498
+ "hostPID": {
499
+ "description": "hostPID determines if the policy allows the use of HostPID in the pod spec.",
500
+ "type": [
501
+ "boolean",
502
+ "null"
503
+ ]
504
+ },
505
+ "hostPorts": {
506
+ "description": "hostPorts determines which host port ranges are allowed to be exposed.",
507
+ "type": [
508
+ "array",
509
+ "null"
510
+ ],
511
+ "items": {
512
+ "description": "HostPortRange defines a range of host ports that will be enabled by a policy for pods to use. It requires both the start and end to be defined.",
513
+ "type": [
514
+ "object",
515
+ "null"
516
+ ],
517
+ "required": [
518
+ "min",
519
+ "max"
520
+ ],
521
+ "properties": {
522
+ "max": {
523
+ "description": "max is the end of the range, inclusive.",
524
+ "type": "integer",
525
+ "format": "int32"
526
+ },
527
+ "min": {
528
+ "description": "min is the start of the range, inclusive.",
529
+ "type": "integer",
530
+ "format": "int32"
531
+ }
532
+ }
533
+ }
534
+ },
535
+ "privileged": {
536
+ "description": "privileged determines if a pod can request to be run as privileged.",
537
+ "type": [
538
+ "boolean",
539
+ "null"
540
+ ]
541
+ },
542
+ "readOnlyRootFilesystem": {
543
+ "description": "readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to.",
544
+ "type": [
545
+ "boolean",
546
+ "null"
547
+ ]
548
+ },
549
+ "requiredDropCapabilities": {
550
+ "description": "requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added.",
551
+ "type": [
552
+ "array",
553
+ "null"
554
+ ],
555
+ "items": {
556
+ "type": [
557
+ "string",
558
+ "null"
559
+ ]
560
+ }
561
+ },
562
+ "runAsGroup": {
563
+ "description": "RunAsGroupStrategyOptions defines the strategy type and any options used to create the strategy.",
564
+ "type": [
565
+ "object",
566
+ "null"
567
+ ],
568
+ "required": [
569
+ "rule"
570
+ ],
571
+ "properties": {
572
+ "ranges": {
573
+ "description": "ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs.",
574
+ "type": [
575
+ "array",
576
+ "null"
577
+ ],
578
+ "items": {
579
+ "description": "IDRange provides a min/max of an allowed range of IDs.",
580
+ "type": [
581
+ "object",
582
+ "null"
583
+ ],
584
+ "required": [
585
+ "min",
586
+ "max"
587
+ ],
588
+ "properties": {
589
+ "max": {
590
+ "description": "max is the end of the range, inclusive.",
591
+ "type": "integer",
592
+ "format": "int64"
593
+ },
594
+ "min": {
595
+ "description": "min is the start of the range, inclusive.",
596
+ "type": "integer",
597
+ "format": "int64"
598
+ }
599
+ }
600
+ }
601
+ },
602
+ "rule": {
603
+ "description": "rule is the strategy that will dictate the allowable RunAsGroup values that may be set.",
604
+ "type": "string"
605
+ }
606
+ }
607
+ },
608
+ "runAsUser": {
609
+ "description": "RunAsUserStrategyOptions defines the strategy type and any options used to create the strategy.",
610
+ "type": "object",
611
+ "required": [
612
+ "rule"
613
+ ],
614
+ "properties": {
615
+ "ranges": {
616
+ "description": "ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs.",
617
+ "type": [
618
+ "array",
619
+ "null"
620
+ ],
621
+ "items": {
622
+ "description": "IDRange provides a min/max of an allowed range of IDs.",
623
+ "type": [
624
+ "object",
625
+ "null"
626
+ ],
627
+ "required": [
628
+ "min",
629
+ "max"
630
+ ],
631
+ "properties": {
632
+ "max": {
633
+ "description": "max is the end of the range, inclusive.",
634
+ "type": "integer",
635
+ "format": "int64"
636
+ },
637
+ "min": {
638
+ "description": "min is the start of the range, inclusive.",
639
+ "type": "integer",
640
+ "format": "int64"
641
+ }
642
+ }
643
+ }
644
+ },
645
+ "rule": {
646
+ "description": "rule is the strategy that will dictate the allowable RunAsUser values that may be set.",
647
+ "type": "string"
648
+ }
649
+ }
650
+ },
651
+ "runtimeClass": {
652
+ "description": "RuntimeClassStrategyOptions define the strategy that will dictate the allowable RuntimeClasses for a pod.",
653
+ "type": [
654
+ "object",
655
+ "null"
656
+ ],
657
+ "required": [
658
+ "allowedRuntimeClassNames"
659
+ ],
660
+ "properties": {
661
+ "allowedRuntimeClassNames": {
662
+ "description": "allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be specified on a pod. A value of \"*\" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset.",
663
+ "type": "array",
664
+ "items": {
665
+ "type": [
666
+ "string",
667
+ "null"
668
+ ]
669
+ }
670
+ },
671
+ "defaultRuntimeClassName": {
672
+ "description": "defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod.",
673
+ "type": [
674
+ "string",
675
+ "null"
676
+ ]
677
+ }
678
+ }
679
+ },
680
+ "seLinux": {
681
+ "description": "SELinuxStrategyOptions defines the strategy type and any options used to create the strategy.",
682
+ "type": "object",
683
+ "required": [
684
+ "rule"
685
+ ],
686
+ "properties": {
687
+ "rule": {
688
+ "description": "rule is the strategy that will dictate the allowable labels that may be set.",
689
+ "type": "string"
690
+ },
691
+ "seLinuxOptions": {
692
+ "description": "SELinuxOptions are the labels to be applied to the container",
693
+ "type": [
694
+ "object",
695
+ "null"
696
+ ],
697
+ "properties": {
698
+ "level": {
699
+ "description": "Level is SELinux level label that applies to the container.",
700
+ "type": [
701
+ "string",
702
+ "null"
703
+ ]
704
+ },
705
+ "role": {
706
+ "description": "Role is a SELinux role label that applies to the container.",
707
+ "type": [
708
+ "string",
709
+ "null"
710
+ ]
711
+ },
712
+ "type": {
713
+ "description": "Type is a SELinux type label that applies to the container.",
714
+ "type": [
715
+ "string",
716
+ "null"
717
+ ]
718
+ },
719
+ "user": {
720
+ "description": "User is a SELinux user label that applies to the container.",
721
+ "type": [
722
+ "string",
723
+ "null"
724
+ ]
725
+ }
726
+ }
727
+ }
728
+ }
729
+ },
730
+ "supplementalGroups": {
731
+ "description": "SupplementalGroupsStrategyOptions defines the strategy type and options used to create the strategy.",
732
+ "type": "object",
733
+ "properties": {
734
+ "ranges": {
735
+ "description": "ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. Required for MustRunAs.",
736
+ "type": [
737
+ "array",
738
+ "null"
739
+ ],
740
+ "items": {
741
+ "description": "IDRange provides a min/max of an allowed range of IDs.",
742
+ "type": [
743
+ "object",
744
+ "null"
745
+ ],
746
+ "required": [
747
+ "min",
748
+ "max"
749
+ ],
750
+ "properties": {
751
+ "max": {
752
+ "description": "max is the end of the range, inclusive.",
753
+ "type": "integer",
754
+ "format": "int64"
755
+ },
756
+ "min": {
757
+ "description": "min is the start of the range, inclusive.",
758
+ "type": "integer",
759
+ "format": "int64"
760
+ }
761
+ }
762
+ }
763
+ },
764
+ "rule": {
765
+ "description": "rule is the strategy that will dictate what supplemental groups is used in the SecurityContext.",
766
+ "type": [
767
+ "string",
768
+ "null"
769
+ ]
770
+ }
771
+ }
772
+ },
773
+ "volumes": {
774
+ "description": "volumes is an allowlist of volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'.",
775
+ "type": [
776
+ "array",
777
+ "null"
778
+ ],
779
+ "items": {
780
+ "type": [
781
+ "string",
782
+ "null"
783
+ ]
784
+ }
785
+ }
786
+ }
787
+ }
788
+ },
789
+ "x-kubernetes-group-version-kind": [
790
+ {
791
+ "group": "policy",
792
+ "kind": "PodSecurityPolicy",
793
+ "version": "v1beta1"
794
+ }
795
+ ],
796
+ "$schema": "http://json-schema.org/schema#"
797
+ }