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,1770 @@
1
+ {
2
+ "description": "HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified.",
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
+ "HorizontalPodAutoscaler"
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": "HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.",
275
+ "type": [
276
+ "object",
277
+ "null"
278
+ ],
279
+ "required": [
280
+ "scaleTargetRef",
281
+ "maxReplicas"
282
+ ],
283
+ "properties": {
284
+ "behavior": {
285
+ "description": "HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively).",
286
+ "type": [
287
+ "object",
288
+ "null"
289
+ ],
290
+ "properties": {
291
+ "scaleDown": {
292
+ "description": "HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen.",
293
+ "type": [
294
+ "object",
295
+ "null"
296
+ ],
297
+ "properties": {
298
+ "policies": {
299
+ "description": "policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid",
300
+ "type": [
301
+ "array",
302
+ "null"
303
+ ],
304
+ "items": {
305
+ "description": "HPAScalingPolicy is a single policy which must hold true for a specified past interval.",
306
+ "type": [
307
+ "object",
308
+ "null"
309
+ ],
310
+ "required": [
311
+ "type",
312
+ "value",
313
+ "periodSeconds"
314
+ ],
315
+ "properties": {
316
+ "periodSeconds": {
317
+ "description": "PeriodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).",
318
+ "type": "integer",
319
+ "format": "int32"
320
+ },
321
+ "type": {
322
+ "description": "Type is used to specify the scaling policy.",
323
+ "type": "string"
324
+ },
325
+ "value": {
326
+ "description": "Value contains the amount of change which is permitted by the policy. It must be greater than zero",
327
+ "type": "integer",
328
+ "format": "int32"
329
+ }
330
+ }
331
+ }
332
+ },
333
+ "selectPolicy": {
334
+ "description": "selectPolicy is used to specify which policy should be used. If not set, the default value MaxPolicySelect is used.",
335
+ "type": [
336
+ "string",
337
+ "null"
338
+ ]
339
+ },
340
+ "stabilizationWindowSeconds": {
341
+ "description": "StabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long).",
342
+ "type": [
343
+ "integer",
344
+ "null"
345
+ ],
346
+ "format": "int32"
347
+ }
348
+ }
349
+ },
350
+ "scaleUp": {
351
+ "description": "HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen.",
352
+ "type": [
353
+ "object",
354
+ "null"
355
+ ],
356
+ "properties": {
357
+ "policies": {
358
+ "description": "policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid",
359
+ "type": [
360
+ "array",
361
+ "null"
362
+ ],
363
+ "items": {
364
+ "description": "HPAScalingPolicy is a single policy which must hold true for a specified past interval.",
365
+ "type": [
366
+ "object",
367
+ "null"
368
+ ],
369
+ "required": [
370
+ "type",
371
+ "value",
372
+ "periodSeconds"
373
+ ],
374
+ "properties": {
375
+ "periodSeconds": {
376
+ "description": "PeriodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).",
377
+ "type": "integer",
378
+ "format": "int32"
379
+ },
380
+ "type": {
381
+ "description": "Type is used to specify the scaling policy.",
382
+ "type": "string"
383
+ },
384
+ "value": {
385
+ "description": "Value contains the amount of change which is permitted by the policy. It must be greater than zero",
386
+ "type": "integer",
387
+ "format": "int32"
388
+ }
389
+ }
390
+ }
391
+ },
392
+ "selectPolicy": {
393
+ "description": "selectPolicy is used to specify which policy should be used. If not set, the default value MaxPolicySelect is used.",
394
+ "type": [
395
+ "string",
396
+ "null"
397
+ ]
398
+ },
399
+ "stabilizationWindowSeconds": {
400
+ "description": "StabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long).",
401
+ "type": [
402
+ "integer",
403
+ "null"
404
+ ],
405
+ "format": "int32"
406
+ }
407
+ }
408
+ }
409
+ }
410
+ },
411
+ "maxReplicas": {
412
+ "description": "maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas.",
413
+ "type": "integer",
414
+ "format": "int32"
415
+ },
416
+ "metrics": {
417
+ "description": "metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization.",
418
+ "type": [
419
+ "array",
420
+ "null"
421
+ ],
422
+ "items": {
423
+ "description": "MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).",
424
+ "type": [
425
+ "object",
426
+ "null"
427
+ ],
428
+ "required": [
429
+ "type"
430
+ ],
431
+ "properties": {
432
+ "containerResource": {
433
+ "description": "ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.",
434
+ "type": [
435
+ "object",
436
+ "null"
437
+ ],
438
+ "required": [
439
+ "name",
440
+ "target",
441
+ "container"
442
+ ],
443
+ "properties": {
444
+ "container": {
445
+ "description": "container is the name of the container in the pods of the scaling target",
446
+ "type": "string"
447
+ },
448
+ "name": {
449
+ "description": "name is the name of the resource in question.",
450
+ "type": "string"
451
+ },
452
+ "target": {
453
+ "description": "MetricTarget defines the target value, average value, or average utilization of a specific metric",
454
+ "type": "object",
455
+ "required": [
456
+ "type"
457
+ ],
458
+ "properties": {
459
+ "averageUtilization": {
460
+ "description": "averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type",
461
+ "type": [
462
+ "integer",
463
+ "null"
464
+ ],
465
+ "format": "int32"
466
+ },
467
+ "averageValue": {
468
+ "oneOf": [
469
+ {
470
+ "type": [
471
+ "string",
472
+ "null"
473
+ ]
474
+ },
475
+ {
476
+ "type": [
477
+ "number",
478
+ "null"
479
+ ]
480
+ }
481
+ ]
482
+ },
483
+ "type": {
484
+ "description": "type represents whether the metric type is Utilization, Value, or AverageValue",
485
+ "type": "string"
486
+ },
487
+ "value": {
488
+ "oneOf": [
489
+ {
490
+ "type": [
491
+ "string",
492
+ "null"
493
+ ]
494
+ },
495
+ {
496
+ "type": [
497
+ "number",
498
+ "null"
499
+ ]
500
+ }
501
+ ]
502
+ }
503
+ }
504
+ }
505
+ }
506
+ },
507
+ "external": {
508
+ "description": "ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).",
509
+ "type": [
510
+ "object",
511
+ "null"
512
+ ],
513
+ "required": [
514
+ "metric",
515
+ "target"
516
+ ],
517
+ "properties": {
518
+ "metric": {
519
+ "description": "MetricIdentifier defines the name and optionally selector for a metric",
520
+ "type": "object",
521
+ "required": [
522
+ "name"
523
+ ],
524
+ "properties": {
525
+ "name": {
526
+ "description": "name is the name of the given metric",
527
+ "type": "string"
528
+ },
529
+ "selector": {
530
+ "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.",
531
+ "type": [
532
+ "object",
533
+ "null"
534
+ ],
535
+ "properties": {
536
+ "matchExpressions": {
537
+ "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
538
+ "type": [
539
+ "array",
540
+ "null"
541
+ ],
542
+ "items": {
543
+ "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
544
+ "type": [
545
+ "object",
546
+ "null"
547
+ ],
548
+ "required": [
549
+ "key",
550
+ "operator"
551
+ ],
552
+ "properties": {
553
+ "key": {
554
+ "description": "key is the label key that the selector applies to.",
555
+ "type": "string",
556
+ "x-kubernetes-patch-merge-key": "key",
557
+ "x-kubernetes-patch-strategy": "merge"
558
+ },
559
+ "operator": {
560
+ "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.",
561
+ "type": "string"
562
+ },
563
+ "values": {
564
+ "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.",
565
+ "type": [
566
+ "array",
567
+ "null"
568
+ ],
569
+ "items": {
570
+ "type": [
571
+ "string",
572
+ "null"
573
+ ]
574
+ }
575
+ }
576
+ }
577
+ }
578
+ },
579
+ "matchLabels": {
580
+ "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.",
581
+ "type": [
582
+ "object",
583
+ "null"
584
+ ],
585
+ "additionalProperties": {
586
+ "type": [
587
+ "string",
588
+ "null"
589
+ ]
590
+ }
591
+ }
592
+ },
593
+ "x-kubernetes-map-type": "atomic"
594
+ }
595
+ }
596
+ },
597
+ "target": {
598
+ "description": "MetricTarget defines the target value, average value, or average utilization of a specific metric",
599
+ "type": "object",
600
+ "required": [
601
+ "type"
602
+ ],
603
+ "properties": {
604
+ "averageUtilization": {
605
+ "description": "averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type",
606
+ "type": [
607
+ "integer",
608
+ "null"
609
+ ],
610
+ "format": "int32"
611
+ },
612
+ "averageValue": {
613
+ "oneOf": [
614
+ {
615
+ "type": [
616
+ "string",
617
+ "null"
618
+ ]
619
+ },
620
+ {
621
+ "type": [
622
+ "number",
623
+ "null"
624
+ ]
625
+ }
626
+ ]
627
+ },
628
+ "type": {
629
+ "description": "type represents whether the metric type is Utilization, Value, or AverageValue",
630
+ "type": "string"
631
+ },
632
+ "value": {
633
+ "oneOf": [
634
+ {
635
+ "type": [
636
+ "string",
637
+ "null"
638
+ ]
639
+ },
640
+ {
641
+ "type": [
642
+ "number",
643
+ "null"
644
+ ]
645
+ }
646
+ ]
647
+ }
648
+ }
649
+ }
650
+ }
651
+ },
652
+ "object": {
653
+ "description": "ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).",
654
+ "type": [
655
+ "object",
656
+ "null"
657
+ ],
658
+ "required": [
659
+ "describedObject",
660
+ "target",
661
+ "metric"
662
+ ],
663
+ "properties": {
664
+ "describedObject": {
665
+ "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.",
666
+ "type": "object",
667
+ "required": [
668
+ "kind",
669
+ "name"
670
+ ],
671
+ "properties": {
672
+ "apiVersion": {
673
+ "description": "API version of the referent",
674
+ "type": [
675
+ "string",
676
+ "null"
677
+ ]
678
+ },
679
+ "kind": {
680
+ "description": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"",
681
+ "type": "string"
682
+ },
683
+ "name": {
684
+ "description": "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names",
685
+ "type": "string"
686
+ }
687
+ }
688
+ },
689
+ "metric": {
690
+ "description": "MetricIdentifier defines the name and optionally selector for a metric",
691
+ "type": "object",
692
+ "required": [
693
+ "name"
694
+ ],
695
+ "properties": {
696
+ "name": {
697
+ "description": "name is the name of the given metric",
698
+ "type": "string"
699
+ },
700
+ "selector": {
701
+ "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.",
702
+ "type": [
703
+ "object",
704
+ "null"
705
+ ],
706
+ "properties": {
707
+ "matchExpressions": {
708
+ "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
709
+ "type": [
710
+ "array",
711
+ "null"
712
+ ],
713
+ "items": {
714
+ "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
715
+ "type": [
716
+ "object",
717
+ "null"
718
+ ],
719
+ "required": [
720
+ "key",
721
+ "operator"
722
+ ],
723
+ "properties": {
724
+ "key": {
725
+ "description": "key is the label key that the selector applies to.",
726
+ "type": "string",
727
+ "x-kubernetes-patch-merge-key": "key",
728
+ "x-kubernetes-patch-strategy": "merge"
729
+ },
730
+ "operator": {
731
+ "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.",
732
+ "type": "string"
733
+ },
734
+ "values": {
735
+ "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.",
736
+ "type": [
737
+ "array",
738
+ "null"
739
+ ],
740
+ "items": {
741
+ "type": [
742
+ "string",
743
+ "null"
744
+ ]
745
+ }
746
+ }
747
+ }
748
+ }
749
+ },
750
+ "matchLabels": {
751
+ "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.",
752
+ "type": [
753
+ "object",
754
+ "null"
755
+ ],
756
+ "additionalProperties": {
757
+ "type": [
758
+ "string",
759
+ "null"
760
+ ]
761
+ }
762
+ }
763
+ },
764
+ "x-kubernetes-map-type": "atomic"
765
+ }
766
+ }
767
+ },
768
+ "target": {
769
+ "description": "MetricTarget defines the target value, average value, or average utilization of a specific metric",
770
+ "type": "object",
771
+ "required": [
772
+ "type"
773
+ ],
774
+ "properties": {
775
+ "averageUtilization": {
776
+ "description": "averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type",
777
+ "type": [
778
+ "integer",
779
+ "null"
780
+ ],
781
+ "format": "int32"
782
+ },
783
+ "averageValue": {
784
+ "oneOf": [
785
+ {
786
+ "type": [
787
+ "string",
788
+ "null"
789
+ ]
790
+ },
791
+ {
792
+ "type": [
793
+ "number",
794
+ "null"
795
+ ]
796
+ }
797
+ ]
798
+ },
799
+ "type": {
800
+ "description": "type represents whether the metric type is Utilization, Value, or AverageValue",
801
+ "type": "string"
802
+ },
803
+ "value": {
804
+ "oneOf": [
805
+ {
806
+ "type": [
807
+ "string",
808
+ "null"
809
+ ]
810
+ },
811
+ {
812
+ "type": [
813
+ "number",
814
+ "null"
815
+ ]
816
+ }
817
+ ]
818
+ }
819
+ }
820
+ }
821
+ }
822
+ },
823
+ "pods": {
824
+ "description": "PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.",
825
+ "type": [
826
+ "object",
827
+ "null"
828
+ ],
829
+ "required": [
830
+ "metric",
831
+ "target"
832
+ ],
833
+ "properties": {
834
+ "metric": {
835
+ "description": "MetricIdentifier defines the name and optionally selector for a metric",
836
+ "type": "object",
837
+ "required": [
838
+ "name"
839
+ ],
840
+ "properties": {
841
+ "name": {
842
+ "description": "name is the name of the given metric",
843
+ "type": "string"
844
+ },
845
+ "selector": {
846
+ "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.",
847
+ "type": [
848
+ "object",
849
+ "null"
850
+ ],
851
+ "properties": {
852
+ "matchExpressions": {
853
+ "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
854
+ "type": [
855
+ "array",
856
+ "null"
857
+ ],
858
+ "items": {
859
+ "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
860
+ "type": [
861
+ "object",
862
+ "null"
863
+ ],
864
+ "required": [
865
+ "key",
866
+ "operator"
867
+ ],
868
+ "properties": {
869
+ "key": {
870
+ "description": "key is the label key that the selector applies to.",
871
+ "type": "string",
872
+ "x-kubernetes-patch-merge-key": "key",
873
+ "x-kubernetes-patch-strategy": "merge"
874
+ },
875
+ "operator": {
876
+ "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.",
877
+ "type": "string"
878
+ },
879
+ "values": {
880
+ "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.",
881
+ "type": [
882
+ "array",
883
+ "null"
884
+ ],
885
+ "items": {
886
+ "type": [
887
+ "string",
888
+ "null"
889
+ ]
890
+ }
891
+ }
892
+ }
893
+ }
894
+ },
895
+ "matchLabels": {
896
+ "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.",
897
+ "type": [
898
+ "object",
899
+ "null"
900
+ ],
901
+ "additionalProperties": {
902
+ "type": [
903
+ "string",
904
+ "null"
905
+ ]
906
+ }
907
+ }
908
+ },
909
+ "x-kubernetes-map-type": "atomic"
910
+ }
911
+ }
912
+ },
913
+ "target": {
914
+ "description": "MetricTarget defines the target value, average value, or average utilization of a specific metric",
915
+ "type": "object",
916
+ "required": [
917
+ "type"
918
+ ],
919
+ "properties": {
920
+ "averageUtilization": {
921
+ "description": "averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type",
922
+ "type": [
923
+ "integer",
924
+ "null"
925
+ ],
926
+ "format": "int32"
927
+ },
928
+ "averageValue": {
929
+ "oneOf": [
930
+ {
931
+ "type": [
932
+ "string",
933
+ "null"
934
+ ]
935
+ },
936
+ {
937
+ "type": [
938
+ "number",
939
+ "null"
940
+ ]
941
+ }
942
+ ]
943
+ },
944
+ "type": {
945
+ "description": "type represents whether the metric type is Utilization, Value, or AverageValue",
946
+ "type": "string"
947
+ },
948
+ "value": {
949
+ "oneOf": [
950
+ {
951
+ "type": [
952
+ "string",
953
+ "null"
954
+ ]
955
+ },
956
+ {
957
+ "type": [
958
+ "number",
959
+ "null"
960
+ ]
961
+ }
962
+ ]
963
+ }
964
+ }
965
+ }
966
+ }
967
+ },
968
+ "resource": {
969
+ "description": "ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.",
970
+ "type": [
971
+ "object",
972
+ "null"
973
+ ],
974
+ "required": [
975
+ "name",
976
+ "target"
977
+ ],
978
+ "properties": {
979
+ "name": {
980
+ "description": "name is the name of the resource in question.",
981
+ "type": "string"
982
+ },
983
+ "target": {
984
+ "description": "MetricTarget defines the target value, average value, or average utilization of a specific metric",
985
+ "type": "object",
986
+ "required": [
987
+ "type"
988
+ ],
989
+ "properties": {
990
+ "averageUtilization": {
991
+ "description": "averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type",
992
+ "type": [
993
+ "integer",
994
+ "null"
995
+ ],
996
+ "format": "int32"
997
+ },
998
+ "averageValue": {
999
+ "oneOf": [
1000
+ {
1001
+ "type": [
1002
+ "string",
1003
+ "null"
1004
+ ]
1005
+ },
1006
+ {
1007
+ "type": [
1008
+ "number",
1009
+ "null"
1010
+ ]
1011
+ }
1012
+ ]
1013
+ },
1014
+ "type": {
1015
+ "description": "type represents whether the metric type is Utilization, Value, or AverageValue",
1016
+ "type": "string"
1017
+ },
1018
+ "value": {
1019
+ "oneOf": [
1020
+ {
1021
+ "type": [
1022
+ "string",
1023
+ "null"
1024
+ ]
1025
+ },
1026
+ {
1027
+ "type": [
1028
+ "number",
1029
+ "null"
1030
+ ]
1031
+ }
1032
+ ]
1033
+ }
1034
+ }
1035
+ }
1036
+ }
1037
+ },
1038
+ "type": {
1039
+ "description": "type is the type of metric source. It should be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled",
1040
+ "type": "string"
1041
+ }
1042
+ }
1043
+ }
1044
+ },
1045
+ "minReplicas": {
1046
+ "description": "minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available.",
1047
+ "type": [
1048
+ "integer",
1049
+ "null"
1050
+ ],
1051
+ "format": "int32"
1052
+ },
1053
+ "scaleTargetRef": {
1054
+ "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.",
1055
+ "type": "object",
1056
+ "required": [
1057
+ "kind",
1058
+ "name"
1059
+ ],
1060
+ "properties": {
1061
+ "apiVersion": {
1062
+ "description": "API version of the referent",
1063
+ "type": [
1064
+ "string",
1065
+ "null"
1066
+ ]
1067
+ },
1068
+ "kind": {
1069
+ "description": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"",
1070
+ "type": "string"
1071
+ },
1072
+ "name": {
1073
+ "description": "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names",
1074
+ "type": "string"
1075
+ }
1076
+ }
1077
+ }
1078
+ }
1079
+ },
1080
+ "status": {
1081
+ "description": "HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.",
1082
+ "type": [
1083
+ "object",
1084
+ "null"
1085
+ ],
1086
+ "required": [
1087
+ "currentReplicas",
1088
+ "desiredReplicas",
1089
+ "conditions"
1090
+ ],
1091
+ "properties": {
1092
+ "conditions": {
1093
+ "description": "conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met.",
1094
+ "type": "array",
1095
+ "items": {
1096
+ "description": "HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.",
1097
+ "type": [
1098
+ "object",
1099
+ "null"
1100
+ ],
1101
+ "required": [
1102
+ "type",
1103
+ "status"
1104
+ ],
1105
+ "properties": {
1106
+ "lastTransitionTime": {
1107
+ "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.",
1108
+ "type": [
1109
+ "string",
1110
+ "null"
1111
+ ],
1112
+ "format": "date-time"
1113
+ },
1114
+ "message": {
1115
+ "description": "message is a human-readable explanation containing details about the transition",
1116
+ "type": [
1117
+ "string",
1118
+ "null"
1119
+ ]
1120
+ },
1121
+ "reason": {
1122
+ "description": "reason is the reason for the condition's last transition.",
1123
+ "type": [
1124
+ "string",
1125
+ "null"
1126
+ ]
1127
+ },
1128
+ "status": {
1129
+ "description": "status is the status of the condition (True, False, Unknown)",
1130
+ "type": "string"
1131
+ },
1132
+ "type": {
1133
+ "description": "type describes the current condition",
1134
+ "type": "string"
1135
+ }
1136
+ }
1137
+ }
1138
+ },
1139
+ "currentMetrics": {
1140
+ "description": "currentMetrics is the last read state of the metrics used by this autoscaler.",
1141
+ "type": [
1142
+ "array",
1143
+ "null"
1144
+ ],
1145
+ "items": {
1146
+ "description": "MetricStatus describes the last-read state of a single metric.",
1147
+ "type": [
1148
+ "object",
1149
+ "null"
1150
+ ],
1151
+ "required": [
1152
+ "type"
1153
+ ],
1154
+ "properties": {
1155
+ "containerResource": {
1156
+ "description": "ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.",
1157
+ "type": [
1158
+ "object",
1159
+ "null"
1160
+ ],
1161
+ "required": [
1162
+ "name",
1163
+ "current",
1164
+ "container"
1165
+ ],
1166
+ "properties": {
1167
+ "container": {
1168
+ "description": "Container is the name of the container in the pods of the scaling target",
1169
+ "type": "string"
1170
+ },
1171
+ "current": {
1172
+ "description": "MetricValueStatus holds the current value for a metric",
1173
+ "type": "object",
1174
+ "properties": {
1175
+ "averageUtilization": {
1176
+ "description": "currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.",
1177
+ "type": [
1178
+ "integer",
1179
+ "null"
1180
+ ],
1181
+ "format": "int32"
1182
+ },
1183
+ "averageValue": {
1184
+ "oneOf": [
1185
+ {
1186
+ "type": [
1187
+ "string",
1188
+ "null"
1189
+ ]
1190
+ },
1191
+ {
1192
+ "type": [
1193
+ "number",
1194
+ "null"
1195
+ ]
1196
+ }
1197
+ ]
1198
+ },
1199
+ "value": {
1200
+ "oneOf": [
1201
+ {
1202
+ "type": [
1203
+ "string",
1204
+ "null"
1205
+ ]
1206
+ },
1207
+ {
1208
+ "type": [
1209
+ "number",
1210
+ "null"
1211
+ ]
1212
+ }
1213
+ ]
1214
+ }
1215
+ }
1216
+ },
1217
+ "name": {
1218
+ "description": "Name is the name of the resource in question.",
1219
+ "type": "string"
1220
+ }
1221
+ }
1222
+ },
1223
+ "external": {
1224
+ "description": "ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.",
1225
+ "type": [
1226
+ "object",
1227
+ "null"
1228
+ ],
1229
+ "required": [
1230
+ "metric",
1231
+ "current"
1232
+ ],
1233
+ "properties": {
1234
+ "current": {
1235
+ "description": "MetricValueStatus holds the current value for a metric",
1236
+ "type": "object",
1237
+ "properties": {
1238
+ "averageUtilization": {
1239
+ "description": "currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.",
1240
+ "type": [
1241
+ "integer",
1242
+ "null"
1243
+ ],
1244
+ "format": "int32"
1245
+ },
1246
+ "averageValue": {
1247
+ "oneOf": [
1248
+ {
1249
+ "type": [
1250
+ "string",
1251
+ "null"
1252
+ ]
1253
+ },
1254
+ {
1255
+ "type": [
1256
+ "number",
1257
+ "null"
1258
+ ]
1259
+ }
1260
+ ]
1261
+ },
1262
+ "value": {
1263
+ "oneOf": [
1264
+ {
1265
+ "type": [
1266
+ "string",
1267
+ "null"
1268
+ ]
1269
+ },
1270
+ {
1271
+ "type": [
1272
+ "number",
1273
+ "null"
1274
+ ]
1275
+ }
1276
+ ]
1277
+ }
1278
+ }
1279
+ },
1280
+ "metric": {
1281
+ "description": "MetricIdentifier defines the name and optionally selector for a metric",
1282
+ "type": "object",
1283
+ "required": [
1284
+ "name"
1285
+ ],
1286
+ "properties": {
1287
+ "name": {
1288
+ "description": "name is the name of the given metric",
1289
+ "type": "string"
1290
+ },
1291
+ "selector": {
1292
+ "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.",
1293
+ "type": [
1294
+ "object",
1295
+ "null"
1296
+ ],
1297
+ "properties": {
1298
+ "matchExpressions": {
1299
+ "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
1300
+ "type": [
1301
+ "array",
1302
+ "null"
1303
+ ],
1304
+ "items": {
1305
+ "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
1306
+ "type": [
1307
+ "object",
1308
+ "null"
1309
+ ],
1310
+ "required": [
1311
+ "key",
1312
+ "operator"
1313
+ ],
1314
+ "properties": {
1315
+ "key": {
1316
+ "description": "key is the label key that the selector applies to.",
1317
+ "type": "string",
1318
+ "x-kubernetes-patch-merge-key": "key",
1319
+ "x-kubernetes-patch-strategy": "merge"
1320
+ },
1321
+ "operator": {
1322
+ "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.",
1323
+ "type": "string"
1324
+ },
1325
+ "values": {
1326
+ "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.",
1327
+ "type": [
1328
+ "array",
1329
+ "null"
1330
+ ],
1331
+ "items": {
1332
+ "type": [
1333
+ "string",
1334
+ "null"
1335
+ ]
1336
+ }
1337
+ }
1338
+ }
1339
+ }
1340
+ },
1341
+ "matchLabels": {
1342
+ "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.",
1343
+ "type": [
1344
+ "object",
1345
+ "null"
1346
+ ],
1347
+ "additionalProperties": {
1348
+ "type": [
1349
+ "string",
1350
+ "null"
1351
+ ]
1352
+ }
1353
+ }
1354
+ },
1355
+ "x-kubernetes-map-type": "atomic"
1356
+ }
1357
+ }
1358
+ }
1359
+ }
1360
+ },
1361
+ "object": {
1362
+ "description": "ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).",
1363
+ "type": [
1364
+ "object",
1365
+ "null"
1366
+ ],
1367
+ "required": [
1368
+ "metric",
1369
+ "current",
1370
+ "describedObject"
1371
+ ],
1372
+ "properties": {
1373
+ "current": {
1374
+ "description": "MetricValueStatus holds the current value for a metric",
1375
+ "type": "object",
1376
+ "properties": {
1377
+ "averageUtilization": {
1378
+ "description": "currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.",
1379
+ "type": [
1380
+ "integer",
1381
+ "null"
1382
+ ],
1383
+ "format": "int32"
1384
+ },
1385
+ "averageValue": {
1386
+ "oneOf": [
1387
+ {
1388
+ "type": [
1389
+ "string",
1390
+ "null"
1391
+ ]
1392
+ },
1393
+ {
1394
+ "type": [
1395
+ "number",
1396
+ "null"
1397
+ ]
1398
+ }
1399
+ ]
1400
+ },
1401
+ "value": {
1402
+ "oneOf": [
1403
+ {
1404
+ "type": [
1405
+ "string",
1406
+ "null"
1407
+ ]
1408
+ },
1409
+ {
1410
+ "type": [
1411
+ "number",
1412
+ "null"
1413
+ ]
1414
+ }
1415
+ ]
1416
+ }
1417
+ }
1418
+ },
1419
+ "describedObject": {
1420
+ "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.",
1421
+ "type": "object",
1422
+ "required": [
1423
+ "kind",
1424
+ "name"
1425
+ ],
1426
+ "properties": {
1427
+ "apiVersion": {
1428
+ "description": "API version of the referent",
1429
+ "type": [
1430
+ "string",
1431
+ "null"
1432
+ ]
1433
+ },
1434
+ "kind": {
1435
+ "description": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"",
1436
+ "type": "string"
1437
+ },
1438
+ "name": {
1439
+ "description": "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names",
1440
+ "type": "string"
1441
+ }
1442
+ }
1443
+ },
1444
+ "metric": {
1445
+ "description": "MetricIdentifier defines the name and optionally selector for a metric",
1446
+ "type": "object",
1447
+ "required": [
1448
+ "name"
1449
+ ],
1450
+ "properties": {
1451
+ "name": {
1452
+ "description": "name is the name of the given metric",
1453
+ "type": "string"
1454
+ },
1455
+ "selector": {
1456
+ "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.",
1457
+ "type": [
1458
+ "object",
1459
+ "null"
1460
+ ],
1461
+ "properties": {
1462
+ "matchExpressions": {
1463
+ "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
1464
+ "type": [
1465
+ "array",
1466
+ "null"
1467
+ ],
1468
+ "items": {
1469
+ "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
1470
+ "type": [
1471
+ "object",
1472
+ "null"
1473
+ ],
1474
+ "required": [
1475
+ "key",
1476
+ "operator"
1477
+ ],
1478
+ "properties": {
1479
+ "key": {
1480
+ "description": "key is the label key that the selector applies to.",
1481
+ "type": "string",
1482
+ "x-kubernetes-patch-merge-key": "key",
1483
+ "x-kubernetes-patch-strategy": "merge"
1484
+ },
1485
+ "operator": {
1486
+ "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.",
1487
+ "type": "string"
1488
+ },
1489
+ "values": {
1490
+ "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.",
1491
+ "type": [
1492
+ "array",
1493
+ "null"
1494
+ ],
1495
+ "items": {
1496
+ "type": [
1497
+ "string",
1498
+ "null"
1499
+ ]
1500
+ }
1501
+ }
1502
+ }
1503
+ }
1504
+ },
1505
+ "matchLabels": {
1506
+ "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.",
1507
+ "type": [
1508
+ "object",
1509
+ "null"
1510
+ ],
1511
+ "additionalProperties": {
1512
+ "type": [
1513
+ "string",
1514
+ "null"
1515
+ ]
1516
+ }
1517
+ }
1518
+ },
1519
+ "x-kubernetes-map-type": "atomic"
1520
+ }
1521
+ }
1522
+ }
1523
+ }
1524
+ },
1525
+ "pods": {
1526
+ "description": "PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).",
1527
+ "type": [
1528
+ "object",
1529
+ "null"
1530
+ ],
1531
+ "required": [
1532
+ "metric",
1533
+ "current"
1534
+ ],
1535
+ "properties": {
1536
+ "current": {
1537
+ "description": "MetricValueStatus holds the current value for a metric",
1538
+ "type": "object",
1539
+ "properties": {
1540
+ "averageUtilization": {
1541
+ "description": "currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.",
1542
+ "type": [
1543
+ "integer",
1544
+ "null"
1545
+ ],
1546
+ "format": "int32"
1547
+ },
1548
+ "averageValue": {
1549
+ "oneOf": [
1550
+ {
1551
+ "type": [
1552
+ "string",
1553
+ "null"
1554
+ ]
1555
+ },
1556
+ {
1557
+ "type": [
1558
+ "number",
1559
+ "null"
1560
+ ]
1561
+ }
1562
+ ]
1563
+ },
1564
+ "value": {
1565
+ "oneOf": [
1566
+ {
1567
+ "type": [
1568
+ "string",
1569
+ "null"
1570
+ ]
1571
+ },
1572
+ {
1573
+ "type": [
1574
+ "number",
1575
+ "null"
1576
+ ]
1577
+ }
1578
+ ]
1579
+ }
1580
+ }
1581
+ },
1582
+ "metric": {
1583
+ "description": "MetricIdentifier defines the name and optionally selector for a metric",
1584
+ "type": "object",
1585
+ "required": [
1586
+ "name"
1587
+ ],
1588
+ "properties": {
1589
+ "name": {
1590
+ "description": "name is the name of the given metric",
1591
+ "type": "string"
1592
+ },
1593
+ "selector": {
1594
+ "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.",
1595
+ "type": [
1596
+ "object",
1597
+ "null"
1598
+ ],
1599
+ "properties": {
1600
+ "matchExpressions": {
1601
+ "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
1602
+ "type": [
1603
+ "array",
1604
+ "null"
1605
+ ],
1606
+ "items": {
1607
+ "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
1608
+ "type": [
1609
+ "object",
1610
+ "null"
1611
+ ],
1612
+ "required": [
1613
+ "key",
1614
+ "operator"
1615
+ ],
1616
+ "properties": {
1617
+ "key": {
1618
+ "description": "key is the label key that the selector applies to.",
1619
+ "type": "string",
1620
+ "x-kubernetes-patch-merge-key": "key",
1621
+ "x-kubernetes-patch-strategy": "merge"
1622
+ },
1623
+ "operator": {
1624
+ "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.",
1625
+ "type": "string"
1626
+ },
1627
+ "values": {
1628
+ "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.",
1629
+ "type": [
1630
+ "array",
1631
+ "null"
1632
+ ],
1633
+ "items": {
1634
+ "type": [
1635
+ "string",
1636
+ "null"
1637
+ ]
1638
+ }
1639
+ }
1640
+ }
1641
+ }
1642
+ },
1643
+ "matchLabels": {
1644
+ "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.",
1645
+ "type": [
1646
+ "object",
1647
+ "null"
1648
+ ],
1649
+ "additionalProperties": {
1650
+ "type": [
1651
+ "string",
1652
+ "null"
1653
+ ]
1654
+ }
1655
+ }
1656
+ },
1657
+ "x-kubernetes-map-type": "atomic"
1658
+ }
1659
+ }
1660
+ }
1661
+ }
1662
+ },
1663
+ "resource": {
1664
+ "description": "ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.",
1665
+ "type": [
1666
+ "object",
1667
+ "null"
1668
+ ],
1669
+ "required": [
1670
+ "name",
1671
+ "current"
1672
+ ],
1673
+ "properties": {
1674
+ "current": {
1675
+ "description": "MetricValueStatus holds the current value for a metric",
1676
+ "type": "object",
1677
+ "properties": {
1678
+ "averageUtilization": {
1679
+ "description": "currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.",
1680
+ "type": [
1681
+ "integer",
1682
+ "null"
1683
+ ],
1684
+ "format": "int32"
1685
+ },
1686
+ "averageValue": {
1687
+ "oneOf": [
1688
+ {
1689
+ "type": [
1690
+ "string",
1691
+ "null"
1692
+ ]
1693
+ },
1694
+ {
1695
+ "type": [
1696
+ "number",
1697
+ "null"
1698
+ ]
1699
+ }
1700
+ ]
1701
+ },
1702
+ "value": {
1703
+ "oneOf": [
1704
+ {
1705
+ "type": [
1706
+ "string",
1707
+ "null"
1708
+ ]
1709
+ },
1710
+ {
1711
+ "type": [
1712
+ "number",
1713
+ "null"
1714
+ ]
1715
+ }
1716
+ ]
1717
+ }
1718
+ }
1719
+ },
1720
+ "name": {
1721
+ "description": "Name is the name of the resource in question.",
1722
+ "type": "string"
1723
+ }
1724
+ }
1725
+ },
1726
+ "type": {
1727
+ "description": "type is the type of metric source. It will be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled",
1728
+ "type": "string"
1729
+ }
1730
+ }
1731
+ }
1732
+ },
1733
+ "currentReplicas": {
1734
+ "description": "currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.",
1735
+ "type": "integer",
1736
+ "format": "int32"
1737
+ },
1738
+ "desiredReplicas": {
1739
+ "description": "desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.",
1740
+ "type": "integer",
1741
+ "format": "int32"
1742
+ },
1743
+ "lastScaleTime": {
1744
+ "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.",
1745
+ "type": [
1746
+ "string",
1747
+ "null"
1748
+ ],
1749
+ "format": "date-time"
1750
+ },
1751
+ "observedGeneration": {
1752
+ "description": "observedGeneration is the most recent generation observed by this autoscaler.",
1753
+ "type": [
1754
+ "integer",
1755
+ "null"
1756
+ ],
1757
+ "format": "int64"
1758
+ }
1759
+ }
1760
+ }
1761
+ },
1762
+ "x-kubernetes-group-version-kind": [
1763
+ {
1764
+ "group": "autoscaling",
1765
+ "kind": "HorizontalPodAutoscaler",
1766
+ "version": "v2beta2"
1767
+ }
1768
+ ],
1769
+ "$schema": "http://json-schema.org/schema#"
1770
+ }