forked from cw-ozaki/kubernetes-json-schema
-
Notifications
You must be signed in to change notification settings - Fork 0
/
objectmetricsource-autoscaling-v2beta1.json
58 lines (58 loc) · 1.48 KB
/
objectmetricsource-autoscaling-v2beta1.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
"description": "ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).",
"required": [
"target",
"metricName",
"targetValue"
],
"properties": {
"metricName": {
"description": "metricName is the name of the metric in question.",
"type": [
"string",
"null"
]
},
"target": {
"description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.",
"required": [
"kind",
"name"
],
"properties": {
"apiVersion": {
"description": "API version of the referent",
"type": [
"string",
"null"
]
},
"kind": {
"description": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds\"",
"type": "string"
},
"name": {
"description": "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names",
"type": "string"
}
},
"additionalProperties": false
},
"targetValue": {
"oneOf": [
{
"type": [
"string",
"null"
]
},
{
"type": "integer"
}
]
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/schema#",
"type": "object"
}