kubernetes_schemas 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +8 -3
  3. data/lib/kubernetes_schemas/version.rb +1 -1
  4. data/lib/kubernetes_schemas.rb +2 -1
  5. data/schemas/1.22-strict/apigroup.json +123 -0
  6. data/schemas/1.22-strict/apigrouplist.json +161 -0
  7. data/schemas/1.22-strict/apiresourcelist.json +140 -0
  8. data/schemas/1.22-strict/apiservice.json +439 -0
  9. data/schemas/1.22-strict/apiservicelist.json +522 -0
  10. data/schemas/1.22-strict/apiversions.json +78 -0
  11. data/schemas/1.22-strict/binding.json +349 -0
  12. data/schemas/1.22-strict/certificatesigningrequest.json +464 -0
  13. data/schemas/1.22-strict/certificatesigningrequestlist.json +544 -0
  14. data/schemas/1.22-strict/clusterrole.json +453 -0
  15. data/schemas/1.22-strict/clusterrolebinding.json +361 -0
  16. data/schemas/1.22-strict/clusterrolebindinglist.json +441 -0
  17. data/schemas/1.22-strict/clusterrolelist.json +536 -0
  18. data/schemas/1.22-strict/componentstatus.json +331 -0
  19. data/schemas/1.22-strict/componentstatuslist.json +414 -0
  20. data/schemas/1.22-strict/configmap.json +320 -0
  21. data/schemas/1.22-strict/configmaplist.json +403 -0
  22. data/schemas/1.22-strict/controllerrevision.json +304 -0
  23. data/schemas/1.22-strict/controllerrevisionlist.json +384 -0
  24. data/schemas/1.22-strict/cronjob.json +9985 -0
  25. data/schemas/1.22-strict/cronjoblist.json +10068 -0
  26. data/schemas/1.22-strict/csidriver.json +381 -0
  27. data/schemas/1.22-strict/csidriverlist.json +461 -0
  28. data/schemas/1.22-strict/csinode.json +361 -0
  29. data/schemas/1.22-strict/csinodelist.json +441 -0
  30. data/schemas/1.22-strict/csistoragecapacity.json +396 -0
  31. data/schemas/1.22-strict/csistoragecapacitylist.json +480 -0
  32. data/schemas/1.22-strict/daemonset.json +9715 -0
  33. data/schemas/1.22-strict/daemonsetlist.json +9798 -0
  34. data/schemas/1.22-strict/deleteoptions.json +336 -0
  35. data/schemas/1.22-strict/deployment.json +9736 -0
  36. data/schemas/1.22-strict/deploymentlist.json +9819 -0
  37. data/schemas/1.22-strict/endpoints.json +548 -0
  38. data/schemas/1.22-strict/endpointslice.json +529 -0
  39. data/schemas/1.22-strict/endpointslicelist.json +606 -0
  40. data/schemas/1.22-strict/endpointslist.json +631 -0
  41. data/schemas/1.22-strict/event.json +531 -0
  42. data/schemas/1.22-strict/eventlist.json +611 -0
  43. data/schemas/1.22-strict/eviction.json +624 -0
  44. data/schemas/1.22-strict/flowschema.json +635 -0
  45. data/schemas/1.22-strict/flowschemalist.json +718 -0
  46. data/schemas/1.22-strict/horizontalpodautoscaler.json +1825 -0
  47. data/schemas/1.22-strict/horizontalpodautoscalerlist.json +1908 -0
  48. data/schemas/1.22-strict/ingress.json +659 -0
  49. data/schemas/1.22-strict/ingressclass.json +346 -0
  50. data/schemas/1.22-strict/ingressclasslist.json +429 -0
  51. data/schemas/1.22-strict/ingresslist.json +742 -0
  52. data/schemas/1.22-strict/job.json +9731 -0
  53. data/schemas/1.22-strict/joblist.json +9814 -0
  54. data/schemas/1.22-strict/lease.json +335 -0
  55. data/schemas/1.22-strict/leaselist.json +418 -0
  56. data/schemas/1.22-strict/limitrange.json +435 -0
  57. data/schemas/1.22-strict/limitrangelist.json +518 -0
  58. data/schemas/1.22-strict/localsubjectaccessreview.json +466 -0
  59. data/schemas/1.22-strict/mutatingwebhookconfiguration.json +629 -0
  60. data/schemas/1.22-strict/mutatingwebhookconfigurationlist.json +712 -0
  61. data/schemas/1.22-strict/namespace.json +377 -0
  62. data/schemas/1.22-strict/namespacelist.json +460 -0
  63. data/schemas/1.22-strict/networkpolicy.json +873 -0
  64. data/schemas/1.22-strict/networkpolicylist.json +956 -0
  65. data/schemas/1.22-strict/node.json +928 -0
  66. data/schemas/1.22-strict/nodelist.json +1011 -0
  67. data/schemas/1.22-strict/persistentvolume.json +1820 -0
  68. data/schemas/1.22-strict/persistentvolumeclaim.json +626 -0
  69. data/schemas/1.22-strict/persistentvolumeclaimlist.json +709 -0
  70. data/schemas/1.22-strict/persistentvolumelist.json +1903 -0
  71. data/schemas/1.22-strict/pod.json +10192 -0
  72. data/schemas/1.22-strict/poddisruptionbudget.json +514 -0
  73. data/schemas/1.22-strict/poddisruptionbudgetlist.json +597 -0
  74. data/schemas/1.22-strict/podlist.json +10275 -0
  75. data/schemas/1.22-strict/podsecuritypolicy.json +817 -0
  76. data/schemas/1.22-strict/podsecuritypolicylist.json +900 -0
  77. data/schemas/1.22-strict/podtemplate.json +9435 -0
  78. data/schemas/1.22-strict/podtemplatelist.json +9518 -0
  79. data/schemas/1.22-strict/priorityclass.json +318 -0
  80. data/schemas/1.22-strict/priorityclasslist.json +398 -0
  81. data/schemas/1.22-strict/prioritylevelconfiguration.json +455 -0
  82. data/schemas/1.22-strict/prioritylevelconfigurationlist.json +538 -0
  83. data/schemas/1.22-strict/replicaset.json +9632 -0
  84. data/schemas/1.22-strict/replicasetlist.json +9715 -0
  85. data/schemas/1.22-strict/replicationcontroller.json +9578 -0
  86. data/schemas/1.22-strict/replicationcontrollerlist.json +9661 -0
  87. data/schemas/1.22-strict/resourcequota.json +441 -0
  88. data/schemas/1.22-strict/resourcequotalist.json +524 -0
  89. data/schemas/1.22-strict/role.json +368 -0
  90. data/schemas/1.22-strict/rolebinding.json +361 -0
  91. data/schemas/1.22-strict/rolebindinglist.json +441 -0
  92. data/schemas/1.22-strict/rolelist.json +451 -0
  93. data/schemas/1.22-strict/runtimeclass.json +407 -0
  94. data/schemas/1.22-strict/runtimeclasslist.json +487 -0
  95. data/schemas/1.22-strict/scale.json +329 -0
  96. data/schemas/1.22-strict/secret.json +327 -0
  97. data/schemas/1.22-strict/secretlist.json +410 -0
  98. data/schemas/1.22-strict/selfsubjectaccessreview.json +420 -0
  99. data/schemas/1.22-strict/selfsubjectrulesreview.json +438 -0
  100. data/schemas/1.22-strict/service.json +701 -0
  101. data/schemas/1.22-strict/serviceaccount.json +387 -0
  102. data/schemas/1.22-strict/serviceaccountlist.json +470 -0
  103. data/schemas/1.22-strict/servicelist.json +784 -0
  104. data/schemas/1.22-strict/statefulset.json +10350 -0
  105. data/schemas/1.22-strict/statefulsetlist.json +10433 -0
  106. data/schemas/1.22-strict/status.json +184 -0
  107. data/schemas/1.22-strict/storageclass.json +397 -0
  108. data/schemas/1.22-strict/storageclasslist.json +477 -0
  109. data/schemas/1.22-strict/subjectaccessreview.json +466 -0
  110. data/schemas/1.22-strict/tokenreview.json +412 -0
  111. data/schemas/1.22-strict/validatingwebhookconfiguration.json +622 -0
  112. data/schemas/1.22-strict/validatingwebhookconfigurationlist.json +705 -0
  113. data/schemas/1.22-strict/volumeattachment.json +1909 -0
  114. data/schemas/1.22-strict/volumeattachmentlist.json +1989 -0
  115. data/schemas/1.22-strict/watchevent.json +277 -0
  116. metadata +112 -1
@@ -0,0 +1,1825 @@
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
+ "additionalProperties": false
180
+ }
181
+ },
182
+ "name": {
183
+ "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",
184
+ "type": [
185
+ "string",
186
+ "null"
187
+ ]
188
+ },
189
+ "namespace": {
190
+ "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",
191
+ "type": [
192
+ "string",
193
+ "null"
194
+ ]
195
+ },
196
+ "ownerReferences": {
197
+ "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.",
198
+ "type": [
199
+ "array",
200
+ "null"
201
+ ],
202
+ "items": {
203
+ "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.",
204
+ "type": [
205
+ "object",
206
+ "null"
207
+ ],
208
+ "required": [
209
+ "apiVersion",
210
+ "kind",
211
+ "name",
212
+ "uid"
213
+ ],
214
+ "properties": {
215
+ "apiVersion": {
216
+ "description": "API version of the referent.",
217
+ "type": "string"
218
+ },
219
+ "blockOwnerDeletion": {
220
+ "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.",
221
+ "type": [
222
+ "boolean",
223
+ "null"
224
+ ]
225
+ },
226
+ "controller": {
227
+ "description": "If true, this reference points to the managing controller.",
228
+ "type": [
229
+ "boolean",
230
+ "null"
231
+ ]
232
+ },
233
+ "kind": {
234
+ "description": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
235
+ "type": "string"
236
+ },
237
+ "name": {
238
+ "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names",
239
+ "type": "string"
240
+ },
241
+ "uid": {
242
+ "description": "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids",
243
+ "type": "string"
244
+ }
245
+ },
246
+ "x-kubernetes-map-type": "atomic",
247
+ "additionalProperties": false
248
+ },
249
+ "x-kubernetes-patch-merge-key": "uid",
250
+ "x-kubernetes-patch-strategy": "merge"
251
+ },
252
+ "resourceVersion": {
253
+ "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",
254
+ "type": [
255
+ "string",
256
+ "null"
257
+ ]
258
+ },
259
+ "selfLink": {
260
+ "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.",
261
+ "type": [
262
+ "string",
263
+ "null"
264
+ ]
265
+ },
266
+ "uid": {
267
+ "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",
268
+ "type": [
269
+ "string",
270
+ "null"
271
+ ]
272
+ }
273
+ },
274
+ "additionalProperties": false
275
+ },
276
+ "spec": {
277
+ "description": "HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.",
278
+ "type": [
279
+ "object",
280
+ "null"
281
+ ],
282
+ "required": [
283
+ "scaleTargetRef",
284
+ "maxReplicas"
285
+ ],
286
+ "properties": {
287
+ "behavior": {
288
+ "description": "HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively).",
289
+ "type": [
290
+ "object",
291
+ "null"
292
+ ],
293
+ "properties": {
294
+ "scaleDown": {
295
+ "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.",
296
+ "type": [
297
+ "object",
298
+ "null"
299
+ ],
300
+ "properties": {
301
+ "policies": {
302
+ "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",
303
+ "type": [
304
+ "array",
305
+ "null"
306
+ ],
307
+ "items": {
308
+ "description": "HPAScalingPolicy is a single policy which must hold true for a specified past interval.",
309
+ "type": [
310
+ "object",
311
+ "null"
312
+ ],
313
+ "required": [
314
+ "type",
315
+ "value",
316
+ "periodSeconds"
317
+ ],
318
+ "properties": {
319
+ "periodSeconds": {
320
+ "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).",
321
+ "type": "integer",
322
+ "format": "int32"
323
+ },
324
+ "type": {
325
+ "description": "Type is used to specify the scaling policy.",
326
+ "type": "string"
327
+ },
328
+ "value": {
329
+ "description": "Value contains the amount of change which is permitted by the policy. It must be greater than zero",
330
+ "type": "integer",
331
+ "format": "int32"
332
+ }
333
+ },
334
+ "additionalProperties": false
335
+ }
336
+ },
337
+ "selectPolicy": {
338
+ "description": "selectPolicy is used to specify which policy should be used. If not set, the default value MaxPolicySelect is used.",
339
+ "type": [
340
+ "string",
341
+ "null"
342
+ ]
343
+ },
344
+ "stabilizationWindowSeconds": {
345
+ "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).",
346
+ "type": [
347
+ "integer",
348
+ "null"
349
+ ],
350
+ "format": "int32"
351
+ }
352
+ },
353
+ "additionalProperties": false
354
+ },
355
+ "scaleUp": {
356
+ "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.",
357
+ "type": [
358
+ "object",
359
+ "null"
360
+ ],
361
+ "properties": {
362
+ "policies": {
363
+ "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",
364
+ "type": [
365
+ "array",
366
+ "null"
367
+ ],
368
+ "items": {
369
+ "description": "HPAScalingPolicy is a single policy which must hold true for a specified past interval.",
370
+ "type": [
371
+ "object",
372
+ "null"
373
+ ],
374
+ "required": [
375
+ "type",
376
+ "value",
377
+ "periodSeconds"
378
+ ],
379
+ "properties": {
380
+ "periodSeconds": {
381
+ "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).",
382
+ "type": "integer",
383
+ "format": "int32"
384
+ },
385
+ "type": {
386
+ "description": "Type is used to specify the scaling policy.",
387
+ "type": "string"
388
+ },
389
+ "value": {
390
+ "description": "Value contains the amount of change which is permitted by the policy. It must be greater than zero",
391
+ "type": "integer",
392
+ "format": "int32"
393
+ }
394
+ },
395
+ "additionalProperties": false
396
+ }
397
+ },
398
+ "selectPolicy": {
399
+ "description": "selectPolicy is used to specify which policy should be used. If not set, the default value MaxPolicySelect is used.",
400
+ "type": [
401
+ "string",
402
+ "null"
403
+ ]
404
+ },
405
+ "stabilizationWindowSeconds": {
406
+ "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).",
407
+ "type": [
408
+ "integer",
409
+ "null"
410
+ ],
411
+ "format": "int32"
412
+ }
413
+ },
414
+ "additionalProperties": false
415
+ }
416
+ },
417
+ "additionalProperties": false
418
+ },
419
+ "maxReplicas": {
420
+ "description": "maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas.",
421
+ "type": "integer",
422
+ "format": "int32"
423
+ },
424
+ "metrics": {
425
+ "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.",
426
+ "type": [
427
+ "array",
428
+ "null"
429
+ ],
430
+ "items": {
431
+ "description": "MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).",
432
+ "type": [
433
+ "object",
434
+ "null"
435
+ ],
436
+ "required": [
437
+ "type"
438
+ ],
439
+ "properties": {
440
+ "containerResource": {
441
+ "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.",
442
+ "type": [
443
+ "object",
444
+ "null"
445
+ ],
446
+ "required": [
447
+ "name",
448
+ "target",
449
+ "container"
450
+ ],
451
+ "properties": {
452
+ "container": {
453
+ "description": "container is the name of the container in the pods of the scaling target",
454
+ "type": "string"
455
+ },
456
+ "name": {
457
+ "description": "name is the name of the resource in question.",
458
+ "type": "string"
459
+ },
460
+ "target": {
461
+ "description": "MetricTarget defines the target value, average value, or average utilization of a specific metric",
462
+ "type": "object",
463
+ "required": [
464
+ "type"
465
+ ],
466
+ "properties": {
467
+ "averageUtilization": {
468
+ "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",
469
+ "type": [
470
+ "integer",
471
+ "null"
472
+ ],
473
+ "format": "int32"
474
+ },
475
+ "averageValue": {
476
+ "oneOf": [
477
+ {
478
+ "type": [
479
+ "string",
480
+ "null"
481
+ ]
482
+ },
483
+ {
484
+ "type": [
485
+ "number",
486
+ "null"
487
+ ]
488
+ }
489
+ ]
490
+ },
491
+ "type": {
492
+ "description": "type represents whether the metric type is Utilization, Value, or AverageValue",
493
+ "type": "string"
494
+ },
495
+ "value": {
496
+ "oneOf": [
497
+ {
498
+ "type": [
499
+ "string",
500
+ "null"
501
+ ]
502
+ },
503
+ {
504
+ "type": [
505
+ "number",
506
+ "null"
507
+ ]
508
+ }
509
+ ]
510
+ }
511
+ },
512
+ "additionalProperties": false
513
+ }
514
+ },
515
+ "additionalProperties": false
516
+ },
517
+ "external": {
518
+ "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).",
519
+ "type": [
520
+ "object",
521
+ "null"
522
+ ],
523
+ "required": [
524
+ "metric",
525
+ "target"
526
+ ],
527
+ "properties": {
528
+ "metric": {
529
+ "description": "MetricIdentifier defines the name and optionally selector for a metric",
530
+ "type": "object",
531
+ "required": [
532
+ "name"
533
+ ],
534
+ "properties": {
535
+ "name": {
536
+ "description": "name is the name of the given metric",
537
+ "type": "string"
538
+ },
539
+ "selector": {
540
+ "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.",
541
+ "type": [
542
+ "object",
543
+ "null"
544
+ ],
545
+ "properties": {
546
+ "matchExpressions": {
547
+ "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
548
+ "type": [
549
+ "array",
550
+ "null"
551
+ ],
552
+ "items": {
553
+ "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
554
+ "type": [
555
+ "object",
556
+ "null"
557
+ ],
558
+ "required": [
559
+ "key",
560
+ "operator"
561
+ ],
562
+ "properties": {
563
+ "key": {
564
+ "description": "key is the label key that the selector applies to.",
565
+ "type": "string",
566
+ "x-kubernetes-patch-merge-key": "key",
567
+ "x-kubernetes-patch-strategy": "merge"
568
+ },
569
+ "operator": {
570
+ "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.",
571
+ "type": "string"
572
+ },
573
+ "values": {
574
+ "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.",
575
+ "type": [
576
+ "array",
577
+ "null"
578
+ ],
579
+ "items": {
580
+ "type": [
581
+ "string",
582
+ "null"
583
+ ]
584
+ }
585
+ }
586
+ },
587
+ "additionalProperties": false
588
+ }
589
+ },
590
+ "matchLabels": {
591
+ "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.",
592
+ "type": [
593
+ "object",
594
+ "null"
595
+ ],
596
+ "additionalProperties": {
597
+ "type": [
598
+ "string",
599
+ "null"
600
+ ]
601
+ }
602
+ }
603
+ },
604
+ "x-kubernetes-map-type": "atomic",
605
+ "additionalProperties": false
606
+ }
607
+ },
608
+ "additionalProperties": false
609
+ },
610
+ "target": {
611
+ "description": "MetricTarget defines the target value, average value, or average utilization of a specific metric",
612
+ "type": "object",
613
+ "required": [
614
+ "type"
615
+ ],
616
+ "properties": {
617
+ "averageUtilization": {
618
+ "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",
619
+ "type": [
620
+ "integer",
621
+ "null"
622
+ ],
623
+ "format": "int32"
624
+ },
625
+ "averageValue": {
626
+ "oneOf": [
627
+ {
628
+ "type": [
629
+ "string",
630
+ "null"
631
+ ]
632
+ },
633
+ {
634
+ "type": [
635
+ "number",
636
+ "null"
637
+ ]
638
+ }
639
+ ]
640
+ },
641
+ "type": {
642
+ "description": "type represents whether the metric type is Utilization, Value, or AverageValue",
643
+ "type": "string"
644
+ },
645
+ "value": {
646
+ "oneOf": [
647
+ {
648
+ "type": [
649
+ "string",
650
+ "null"
651
+ ]
652
+ },
653
+ {
654
+ "type": [
655
+ "number",
656
+ "null"
657
+ ]
658
+ }
659
+ ]
660
+ }
661
+ },
662
+ "additionalProperties": false
663
+ }
664
+ },
665
+ "additionalProperties": false
666
+ },
667
+ "object": {
668
+ "description": "ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).",
669
+ "type": [
670
+ "object",
671
+ "null"
672
+ ],
673
+ "required": [
674
+ "describedObject",
675
+ "target",
676
+ "metric"
677
+ ],
678
+ "properties": {
679
+ "describedObject": {
680
+ "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.",
681
+ "type": "object",
682
+ "required": [
683
+ "kind",
684
+ "name"
685
+ ],
686
+ "properties": {
687
+ "apiVersion": {
688
+ "description": "API version of the referent",
689
+ "type": [
690
+ "string",
691
+ "null"
692
+ ]
693
+ },
694
+ "kind": {
695
+ "description": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"",
696
+ "type": "string"
697
+ },
698
+ "name": {
699
+ "description": "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names",
700
+ "type": "string"
701
+ }
702
+ },
703
+ "additionalProperties": false
704
+ },
705
+ "metric": {
706
+ "description": "MetricIdentifier defines the name and optionally selector for a metric",
707
+ "type": "object",
708
+ "required": [
709
+ "name"
710
+ ],
711
+ "properties": {
712
+ "name": {
713
+ "description": "name is the name of the given metric",
714
+ "type": "string"
715
+ },
716
+ "selector": {
717
+ "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.",
718
+ "type": [
719
+ "object",
720
+ "null"
721
+ ],
722
+ "properties": {
723
+ "matchExpressions": {
724
+ "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
725
+ "type": [
726
+ "array",
727
+ "null"
728
+ ],
729
+ "items": {
730
+ "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
731
+ "type": [
732
+ "object",
733
+ "null"
734
+ ],
735
+ "required": [
736
+ "key",
737
+ "operator"
738
+ ],
739
+ "properties": {
740
+ "key": {
741
+ "description": "key is the label key that the selector applies to.",
742
+ "type": "string",
743
+ "x-kubernetes-patch-merge-key": "key",
744
+ "x-kubernetes-patch-strategy": "merge"
745
+ },
746
+ "operator": {
747
+ "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.",
748
+ "type": "string"
749
+ },
750
+ "values": {
751
+ "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.",
752
+ "type": [
753
+ "array",
754
+ "null"
755
+ ],
756
+ "items": {
757
+ "type": [
758
+ "string",
759
+ "null"
760
+ ]
761
+ }
762
+ }
763
+ },
764
+ "additionalProperties": false
765
+ }
766
+ },
767
+ "matchLabels": {
768
+ "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.",
769
+ "type": [
770
+ "object",
771
+ "null"
772
+ ],
773
+ "additionalProperties": {
774
+ "type": [
775
+ "string",
776
+ "null"
777
+ ]
778
+ }
779
+ }
780
+ },
781
+ "x-kubernetes-map-type": "atomic",
782
+ "additionalProperties": false
783
+ }
784
+ },
785
+ "additionalProperties": false
786
+ },
787
+ "target": {
788
+ "description": "MetricTarget defines the target value, average value, or average utilization of a specific metric",
789
+ "type": "object",
790
+ "required": [
791
+ "type"
792
+ ],
793
+ "properties": {
794
+ "averageUtilization": {
795
+ "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",
796
+ "type": [
797
+ "integer",
798
+ "null"
799
+ ],
800
+ "format": "int32"
801
+ },
802
+ "averageValue": {
803
+ "oneOf": [
804
+ {
805
+ "type": [
806
+ "string",
807
+ "null"
808
+ ]
809
+ },
810
+ {
811
+ "type": [
812
+ "number",
813
+ "null"
814
+ ]
815
+ }
816
+ ]
817
+ },
818
+ "type": {
819
+ "description": "type represents whether the metric type is Utilization, Value, or AverageValue",
820
+ "type": "string"
821
+ },
822
+ "value": {
823
+ "oneOf": [
824
+ {
825
+ "type": [
826
+ "string",
827
+ "null"
828
+ ]
829
+ },
830
+ {
831
+ "type": [
832
+ "number",
833
+ "null"
834
+ ]
835
+ }
836
+ ]
837
+ }
838
+ },
839
+ "additionalProperties": false
840
+ }
841
+ },
842
+ "additionalProperties": false
843
+ },
844
+ "pods": {
845
+ "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.",
846
+ "type": [
847
+ "object",
848
+ "null"
849
+ ],
850
+ "required": [
851
+ "metric",
852
+ "target"
853
+ ],
854
+ "properties": {
855
+ "metric": {
856
+ "description": "MetricIdentifier defines the name and optionally selector for a metric",
857
+ "type": "object",
858
+ "required": [
859
+ "name"
860
+ ],
861
+ "properties": {
862
+ "name": {
863
+ "description": "name is the name of the given metric",
864
+ "type": "string"
865
+ },
866
+ "selector": {
867
+ "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.",
868
+ "type": [
869
+ "object",
870
+ "null"
871
+ ],
872
+ "properties": {
873
+ "matchExpressions": {
874
+ "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
875
+ "type": [
876
+ "array",
877
+ "null"
878
+ ],
879
+ "items": {
880
+ "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
881
+ "type": [
882
+ "object",
883
+ "null"
884
+ ],
885
+ "required": [
886
+ "key",
887
+ "operator"
888
+ ],
889
+ "properties": {
890
+ "key": {
891
+ "description": "key is the label key that the selector applies to.",
892
+ "type": "string",
893
+ "x-kubernetes-patch-merge-key": "key",
894
+ "x-kubernetes-patch-strategy": "merge"
895
+ },
896
+ "operator": {
897
+ "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.",
898
+ "type": "string"
899
+ },
900
+ "values": {
901
+ "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.",
902
+ "type": [
903
+ "array",
904
+ "null"
905
+ ],
906
+ "items": {
907
+ "type": [
908
+ "string",
909
+ "null"
910
+ ]
911
+ }
912
+ }
913
+ },
914
+ "additionalProperties": false
915
+ }
916
+ },
917
+ "matchLabels": {
918
+ "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.",
919
+ "type": [
920
+ "object",
921
+ "null"
922
+ ],
923
+ "additionalProperties": {
924
+ "type": [
925
+ "string",
926
+ "null"
927
+ ]
928
+ }
929
+ }
930
+ },
931
+ "x-kubernetes-map-type": "atomic",
932
+ "additionalProperties": false
933
+ }
934
+ },
935
+ "additionalProperties": false
936
+ },
937
+ "target": {
938
+ "description": "MetricTarget defines the target value, average value, or average utilization of a specific metric",
939
+ "type": "object",
940
+ "required": [
941
+ "type"
942
+ ],
943
+ "properties": {
944
+ "averageUtilization": {
945
+ "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",
946
+ "type": [
947
+ "integer",
948
+ "null"
949
+ ],
950
+ "format": "int32"
951
+ },
952
+ "averageValue": {
953
+ "oneOf": [
954
+ {
955
+ "type": [
956
+ "string",
957
+ "null"
958
+ ]
959
+ },
960
+ {
961
+ "type": [
962
+ "number",
963
+ "null"
964
+ ]
965
+ }
966
+ ]
967
+ },
968
+ "type": {
969
+ "description": "type represents whether the metric type is Utilization, Value, or AverageValue",
970
+ "type": "string"
971
+ },
972
+ "value": {
973
+ "oneOf": [
974
+ {
975
+ "type": [
976
+ "string",
977
+ "null"
978
+ ]
979
+ },
980
+ {
981
+ "type": [
982
+ "number",
983
+ "null"
984
+ ]
985
+ }
986
+ ]
987
+ }
988
+ },
989
+ "additionalProperties": false
990
+ }
991
+ },
992
+ "additionalProperties": false
993
+ },
994
+ "resource": {
995
+ "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.",
996
+ "type": [
997
+ "object",
998
+ "null"
999
+ ],
1000
+ "required": [
1001
+ "name",
1002
+ "target"
1003
+ ],
1004
+ "properties": {
1005
+ "name": {
1006
+ "description": "name is the name of the resource in question.",
1007
+ "type": "string"
1008
+ },
1009
+ "target": {
1010
+ "description": "MetricTarget defines the target value, average value, or average utilization of a specific metric",
1011
+ "type": "object",
1012
+ "required": [
1013
+ "type"
1014
+ ],
1015
+ "properties": {
1016
+ "averageUtilization": {
1017
+ "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",
1018
+ "type": [
1019
+ "integer",
1020
+ "null"
1021
+ ],
1022
+ "format": "int32"
1023
+ },
1024
+ "averageValue": {
1025
+ "oneOf": [
1026
+ {
1027
+ "type": [
1028
+ "string",
1029
+ "null"
1030
+ ]
1031
+ },
1032
+ {
1033
+ "type": [
1034
+ "number",
1035
+ "null"
1036
+ ]
1037
+ }
1038
+ ]
1039
+ },
1040
+ "type": {
1041
+ "description": "type represents whether the metric type is Utilization, Value, or AverageValue",
1042
+ "type": "string"
1043
+ },
1044
+ "value": {
1045
+ "oneOf": [
1046
+ {
1047
+ "type": [
1048
+ "string",
1049
+ "null"
1050
+ ]
1051
+ },
1052
+ {
1053
+ "type": [
1054
+ "number",
1055
+ "null"
1056
+ ]
1057
+ }
1058
+ ]
1059
+ }
1060
+ },
1061
+ "additionalProperties": false
1062
+ }
1063
+ },
1064
+ "additionalProperties": false
1065
+ },
1066
+ "type": {
1067
+ "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",
1068
+ "type": "string"
1069
+ }
1070
+ },
1071
+ "additionalProperties": false
1072
+ }
1073
+ },
1074
+ "minReplicas": {
1075
+ "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.",
1076
+ "type": [
1077
+ "integer",
1078
+ "null"
1079
+ ],
1080
+ "format": "int32"
1081
+ },
1082
+ "scaleTargetRef": {
1083
+ "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.",
1084
+ "type": "object",
1085
+ "required": [
1086
+ "kind",
1087
+ "name"
1088
+ ],
1089
+ "properties": {
1090
+ "apiVersion": {
1091
+ "description": "API version of the referent",
1092
+ "type": [
1093
+ "string",
1094
+ "null"
1095
+ ]
1096
+ },
1097
+ "kind": {
1098
+ "description": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"",
1099
+ "type": "string"
1100
+ },
1101
+ "name": {
1102
+ "description": "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names",
1103
+ "type": "string"
1104
+ }
1105
+ },
1106
+ "additionalProperties": false
1107
+ }
1108
+ },
1109
+ "additionalProperties": false
1110
+ },
1111
+ "status": {
1112
+ "description": "HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.",
1113
+ "type": [
1114
+ "object",
1115
+ "null"
1116
+ ],
1117
+ "required": [
1118
+ "currentReplicas",
1119
+ "desiredReplicas",
1120
+ "conditions"
1121
+ ],
1122
+ "properties": {
1123
+ "conditions": {
1124
+ "description": "conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met.",
1125
+ "type": "array",
1126
+ "items": {
1127
+ "description": "HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.",
1128
+ "type": [
1129
+ "object",
1130
+ "null"
1131
+ ],
1132
+ "required": [
1133
+ "type",
1134
+ "status"
1135
+ ],
1136
+ "properties": {
1137
+ "lastTransitionTime": {
1138
+ "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.",
1139
+ "type": [
1140
+ "string",
1141
+ "null"
1142
+ ],
1143
+ "format": "date-time"
1144
+ },
1145
+ "message": {
1146
+ "description": "message is a human-readable explanation containing details about the transition",
1147
+ "type": [
1148
+ "string",
1149
+ "null"
1150
+ ]
1151
+ },
1152
+ "reason": {
1153
+ "description": "reason is the reason for the condition's last transition.",
1154
+ "type": [
1155
+ "string",
1156
+ "null"
1157
+ ]
1158
+ },
1159
+ "status": {
1160
+ "description": "status is the status of the condition (True, False, Unknown)",
1161
+ "type": "string"
1162
+ },
1163
+ "type": {
1164
+ "description": "type describes the current condition",
1165
+ "type": "string"
1166
+ }
1167
+ },
1168
+ "additionalProperties": false
1169
+ }
1170
+ },
1171
+ "currentMetrics": {
1172
+ "description": "currentMetrics is the last read state of the metrics used by this autoscaler.",
1173
+ "type": [
1174
+ "array",
1175
+ "null"
1176
+ ],
1177
+ "items": {
1178
+ "description": "MetricStatus describes the last-read state of a single metric.",
1179
+ "type": [
1180
+ "object",
1181
+ "null"
1182
+ ],
1183
+ "required": [
1184
+ "type"
1185
+ ],
1186
+ "properties": {
1187
+ "containerResource": {
1188
+ "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.",
1189
+ "type": [
1190
+ "object",
1191
+ "null"
1192
+ ],
1193
+ "required": [
1194
+ "name",
1195
+ "current",
1196
+ "container"
1197
+ ],
1198
+ "properties": {
1199
+ "container": {
1200
+ "description": "Container is the name of the container in the pods of the scaling target",
1201
+ "type": "string"
1202
+ },
1203
+ "current": {
1204
+ "description": "MetricValueStatus holds the current value for a metric",
1205
+ "type": "object",
1206
+ "properties": {
1207
+ "averageUtilization": {
1208
+ "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.",
1209
+ "type": [
1210
+ "integer",
1211
+ "null"
1212
+ ],
1213
+ "format": "int32"
1214
+ },
1215
+ "averageValue": {
1216
+ "oneOf": [
1217
+ {
1218
+ "type": [
1219
+ "string",
1220
+ "null"
1221
+ ]
1222
+ },
1223
+ {
1224
+ "type": [
1225
+ "number",
1226
+ "null"
1227
+ ]
1228
+ }
1229
+ ]
1230
+ },
1231
+ "value": {
1232
+ "oneOf": [
1233
+ {
1234
+ "type": [
1235
+ "string",
1236
+ "null"
1237
+ ]
1238
+ },
1239
+ {
1240
+ "type": [
1241
+ "number",
1242
+ "null"
1243
+ ]
1244
+ }
1245
+ ]
1246
+ }
1247
+ },
1248
+ "additionalProperties": false
1249
+ },
1250
+ "name": {
1251
+ "description": "Name is the name of the resource in question.",
1252
+ "type": "string"
1253
+ }
1254
+ },
1255
+ "additionalProperties": false
1256
+ },
1257
+ "external": {
1258
+ "description": "ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.",
1259
+ "type": [
1260
+ "object",
1261
+ "null"
1262
+ ],
1263
+ "required": [
1264
+ "metric",
1265
+ "current"
1266
+ ],
1267
+ "properties": {
1268
+ "current": {
1269
+ "description": "MetricValueStatus holds the current value for a metric",
1270
+ "type": "object",
1271
+ "properties": {
1272
+ "averageUtilization": {
1273
+ "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.",
1274
+ "type": [
1275
+ "integer",
1276
+ "null"
1277
+ ],
1278
+ "format": "int32"
1279
+ },
1280
+ "averageValue": {
1281
+ "oneOf": [
1282
+ {
1283
+ "type": [
1284
+ "string",
1285
+ "null"
1286
+ ]
1287
+ },
1288
+ {
1289
+ "type": [
1290
+ "number",
1291
+ "null"
1292
+ ]
1293
+ }
1294
+ ]
1295
+ },
1296
+ "value": {
1297
+ "oneOf": [
1298
+ {
1299
+ "type": [
1300
+ "string",
1301
+ "null"
1302
+ ]
1303
+ },
1304
+ {
1305
+ "type": [
1306
+ "number",
1307
+ "null"
1308
+ ]
1309
+ }
1310
+ ]
1311
+ }
1312
+ },
1313
+ "additionalProperties": false
1314
+ },
1315
+ "metric": {
1316
+ "description": "MetricIdentifier defines the name and optionally selector for a metric",
1317
+ "type": "object",
1318
+ "required": [
1319
+ "name"
1320
+ ],
1321
+ "properties": {
1322
+ "name": {
1323
+ "description": "name is the name of the given metric",
1324
+ "type": "string"
1325
+ },
1326
+ "selector": {
1327
+ "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.",
1328
+ "type": [
1329
+ "object",
1330
+ "null"
1331
+ ],
1332
+ "properties": {
1333
+ "matchExpressions": {
1334
+ "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
1335
+ "type": [
1336
+ "array",
1337
+ "null"
1338
+ ],
1339
+ "items": {
1340
+ "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
1341
+ "type": [
1342
+ "object",
1343
+ "null"
1344
+ ],
1345
+ "required": [
1346
+ "key",
1347
+ "operator"
1348
+ ],
1349
+ "properties": {
1350
+ "key": {
1351
+ "description": "key is the label key that the selector applies to.",
1352
+ "type": "string",
1353
+ "x-kubernetes-patch-merge-key": "key",
1354
+ "x-kubernetes-patch-strategy": "merge"
1355
+ },
1356
+ "operator": {
1357
+ "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.",
1358
+ "type": "string"
1359
+ },
1360
+ "values": {
1361
+ "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.",
1362
+ "type": [
1363
+ "array",
1364
+ "null"
1365
+ ],
1366
+ "items": {
1367
+ "type": [
1368
+ "string",
1369
+ "null"
1370
+ ]
1371
+ }
1372
+ }
1373
+ },
1374
+ "additionalProperties": false
1375
+ }
1376
+ },
1377
+ "matchLabels": {
1378
+ "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.",
1379
+ "type": [
1380
+ "object",
1381
+ "null"
1382
+ ],
1383
+ "additionalProperties": {
1384
+ "type": [
1385
+ "string",
1386
+ "null"
1387
+ ]
1388
+ }
1389
+ }
1390
+ },
1391
+ "x-kubernetes-map-type": "atomic",
1392
+ "additionalProperties": false
1393
+ }
1394
+ },
1395
+ "additionalProperties": false
1396
+ }
1397
+ },
1398
+ "additionalProperties": false
1399
+ },
1400
+ "object": {
1401
+ "description": "ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).",
1402
+ "type": [
1403
+ "object",
1404
+ "null"
1405
+ ],
1406
+ "required": [
1407
+ "metric",
1408
+ "current",
1409
+ "describedObject"
1410
+ ],
1411
+ "properties": {
1412
+ "current": {
1413
+ "description": "MetricValueStatus holds the current value for a metric",
1414
+ "type": "object",
1415
+ "properties": {
1416
+ "averageUtilization": {
1417
+ "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.",
1418
+ "type": [
1419
+ "integer",
1420
+ "null"
1421
+ ],
1422
+ "format": "int32"
1423
+ },
1424
+ "averageValue": {
1425
+ "oneOf": [
1426
+ {
1427
+ "type": [
1428
+ "string",
1429
+ "null"
1430
+ ]
1431
+ },
1432
+ {
1433
+ "type": [
1434
+ "number",
1435
+ "null"
1436
+ ]
1437
+ }
1438
+ ]
1439
+ },
1440
+ "value": {
1441
+ "oneOf": [
1442
+ {
1443
+ "type": [
1444
+ "string",
1445
+ "null"
1446
+ ]
1447
+ },
1448
+ {
1449
+ "type": [
1450
+ "number",
1451
+ "null"
1452
+ ]
1453
+ }
1454
+ ]
1455
+ }
1456
+ },
1457
+ "additionalProperties": false
1458
+ },
1459
+ "describedObject": {
1460
+ "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.",
1461
+ "type": "object",
1462
+ "required": [
1463
+ "kind",
1464
+ "name"
1465
+ ],
1466
+ "properties": {
1467
+ "apiVersion": {
1468
+ "description": "API version of the referent",
1469
+ "type": [
1470
+ "string",
1471
+ "null"
1472
+ ]
1473
+ },
1474
+ "kind": {
1475
+ "description": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"",
1476
+ "type": "string"
1477
+ },
1478
+ "name": {
1479
+ "description": "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names",
1480
+ "type": "string"
1481
+ }
1482
+ },
1483
+ "additionalProperties": false
1484
+ },
1485
+ "metric": {
1486
+ "description": "MetricIdentifier defines the name and optionally selector for a metric",
1487
+ "type": "object",
1488
+ "required": [
1489
+ "name"
1490
+ ],
1491
+ "properties": {
1492
+ "name": {
1493
+ "description": "name is the name of the given metric",
1494
+ "type": "string"
1495
+ },
1496
+ "selector": {
1497
+ "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.",
1498
+ "type": [
1499
+ "object",
1500
+ "null"
1501
+ ],
1502
+ "properties": {
1503
+ "matchExpressions": {
1504
+ "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
1505
+ "type": [
1506
+ "array",
1507
+ "null"
1508
+ ],
1509
+ "items": {
1510
+ "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
1511
+ "type": [
1512
+ "object",
1513
+ "null"
1514
+ ],
1515
+ "required": [
1516
+ "key",
1517
+ "operator"
1518
+ ],
1519
+ "properties": {
1520
+ "key": {
1521
+ "description": "key is the label key that the selector applies to.",
1522
+ "type": "string",
1523
+ "x-kubernetes-patch-merge-key": "key",
1524
+ "x-kubernetes-patch-strategy": "merge"
1525
+ },
1526
+ "operator": {
1527
+ "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.",
1528
+ "type": "string"
1529
+ },
1530
+ "values": {
1531
+ "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.",
1532
+ "type": [
1533
+ "array",
1534
+ "null"
1535
+ ],
1536
+ "items": {
1537
+ "type": [
1538
+ "string",
1539
+ "null"
1540
+ ]
1541
+ }
1542
+ }
1543
+ },
1544
+ "additionalProperties": false
1545
+ }
1546
+ },
1547
+ "matchLabels": {
1548
+ "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.",
1549
+ "type": [
1550
+ "object",
1551
+ "null"
1552
+ ],
1553
+ "additionalProperties": {
1554
+ "type": [
1555
+ "string",
1556
+ "null"
1557
+ ]
1558
+ }
1559
+ }
1560
+ },
1561
+ "x-kubernetes-map-type": "atomic",
1562
+ "additionalProperties": false
1563
+ }
1564
+ },
1565
+ "additionalProperties": false
1566
+ }
1567
+ },
1568
+ "additionalProperties": false
1569
+ },
1570
+ "pods": {
1571
+ "description": "PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).",
1572
+ "type": [
1573
+ "object",
1574
+ "null"
1575
+ ],
1576
+ "required": [
1577
+ "metric",
1578
+ "current"
1579
+ ],
1580
+ "properties": {
1581
+ "current": {
1582
+ "description": "MetricValueStatus holds the current value for a metric",
1583
+ "type": "object",
1584
+ "properties": {
1585
+ "averageUtilization": {
1586
+ "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.",
1587
+ "type": [
1588
+ "integer",
1589
+ "null"
1590
+ ],
1591
+ "format": "int32"
1592
+ },
1593
+ "averageValue": {
1594
+ "oneOf": [
1595
+ {
1596
+ "type": [
1597
+ "string",
1598
+ "null"
1599
+ ]
1600
+ },
1601
+ {
1602
+ "type": [
1603
+ "number",
1604
+ "null"
1605
+ ]
1606
+ }
1607
+ ]
1608
+ },
1609
+ "value": {
1610
+ "oneOf": [
1611
+ {
1612
+ "type": [
1613
+ "string",
1614
+ "null"
1615
+ ]
1616
+ },
1617
+ {
1618
+ "type": [
1619
+ "number",
1620
+ "null"
1621
+ ]
1622
+ }
1623
+ ]
1624
+ }
1625
+ },
1626
+ "additionalProperties": false
1627
+ },
1628
+ "metric": {
1629
+ "description": "MetricIdentifier defines the name and optionally selector for a metric",
1630
+ "type": "object",
1631
+ "required": [
1632
+ "name"
1633
+ ],
1634
+ "properties": {
1635
+ "name": {
1636
+ "description": "name is the name of the given metric",
1637
+ "type": "string"
1638
+ },
1639
+ "selector": {
1640
+ "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.",
1641
+ "type": [
1642
+ "object",
1643
+ "null"
1644
+ ],
1645
+ "properties": {
1646
+ "matchExpressions": {
1647
+ "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
1648
+ "type": [
1649
+ "array",
1650
+ "null"
1651
+ ],
1652
+ "items": {
1653
+ "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
1654
+ "type": [
1655
+ "object",
1656
+ "null"
1657
+ ],
1658
+ "required": [
1659
+ "key",
1660
+ "operator"
1661
+ ],
1662
+ "properties": {
1663
+ "key": {
1664
+ "description": "key is the label key that the selector applies to.",
1665
+ "type": "string",
1666
+ "x-kubernetes-patch-merge-key": "key",
1667
+ "x-kubernetes-patch-strategy": "merge"
1668
+ },
1669
+ "operator": {
1670
+ "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.",
1671
+ "type": "string"
1672
+ },
1673
+ "values": {
1674
+ "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.",
1675
+ "type": [
1676
+ "array",
1677
+ "null"
1678
+ ],
1679
+ "items": {
1680
+ "type": [
1681
+ "string",
1682
+ "null"
1683
+ ]
1684
+ }
1685
+ }
1686
+ },
1687
+ "additionalProperties": false
1688
+ }
1689
+ },
1690
+ "matchLabels": {
1691
+ "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.",
1692
+ "type": [
1693
+ "object",
1694
+ "null"
1695
+ ],
1696
+ "additionalProperties": {
1697
+ "type": [
1698
+ "string",
1699
+ "null"
1700
+ ]
1701
+ }
1702
+ }
1703
+ },
1704
+ "x-kubernetes-map-type": "atomic",
1705
+ "additionalProperties": false
1706
+ }
1707
+ },
1708
+ "additionalProperties": false
1709
+ }
1710
+ },
1711
+ "additionalProperties": false
1712
+ },
1713
+ "resource": {
1714
+ "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.",
1715
+ "type": [
1716
+ "object",
1717
+ "null"
1718
+ ],
1719
+ "required": [
1720
+ "name",
1721
+ "current"
1722
+ ],
1723
+ "properties": {
1724
+ "current": {
1725
+ "description": "MetricValueStatus holds the current value for a metric",
1726
+ "type": "object",
1727
+ "properties": {
1728
+ "averageUtilization": {
1729
+ "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.",
1730
+ "type": [
1731
+ "integer",
1732
+ "null"
1733
+ ],
1734
+ "format": "int32"
1735
+ },
1736
+ "averageValue": {
1737
+ "oneOf": [
1738
+ {
1739
+ "type": [
1740
+ "string",
1741
+ "null"
1742
+ ]
1743
+ },
1744
+ {
1745
+ "type": [
1746
+ "number",
1747
+ "null"
1748
+ ]
1749
+ }
1750
+ ]
1751
+ },
1752
+ "value": {
1753
+ "oneOf": [
1754
+ {
1755
+ "type": [
1756
+ "string",
1757
+ "null"
1758
+ ]
1759
+ },
1760
+ {
1761
+ "type": [
1762
+ "number",
1763
+ "null"
1764
+ ]
1765
+ }
1766
+ ]
1767
+ }
1768
+ },
1769
+ "additionalProperties": false
1770
+ },
1771
+ "name": {
1772
+ "description": "Name is the name of the resource in question.",
1773
+ "type": "string"
1774
+ }
1775
+ },
1776
+ "additionalProperties": false
1777
+ },
1778
+ "type": {
1779
+ "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",
1780
+ "type": "string"
1781
+ }
1782
+ },
1783
+ "additionalProperties": false
1784
+ }
1785
+ },
1786
+ "currentReplicas": {
1787
+ "description": "currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.",
1788
+ "type": "integer",
1789
+ "format": "int32"
1790
+ },
1791
+ "desiredReplicas": {
1792
+ "description": "desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.",
1793
+ "type": "integer",
1794
+ "format": "int32"
1795
+ },
1796
+ "lastScaleTime": {
1797
+ "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.",
1798
+ "type": [
1799
+ "string",
1800
+ "null"
1801
+ ],
1802
+ "format": "date-time"
1803
+ },
1804
+ "observedGeneration": {
1805
+ "description": "observedGeneration is the most recent generation observed by this autoscaler.",
1806
+ "type": [
1807
+ "integer",
1808
+ "null"
1809
+ ],
1810
+ "format": "int64"
1811
+ }
1812
+ },
1813
+ "additionalProperties": false
1814
+ }
1815
+ },
1816
+ "x-kubernetes-group-version-kind": [
1817
+ {
1818
+ "group": "autoscaling",
1819
+ "kind": "HorizontalPodAutoscaler",
1820
+ "version": "v2beta2"
1821
+ }
1822
+ ],
1823
+ "additionalProperties": false,
1824
+ "$schema": "http://json-schema.org/schema#"
1825
+ }