@daocloud-proto/kpanda 0.11.3-87 → 0.11.3-91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7,6 +7,27 @@
|
|
|
7
7
|
import * as KpandaIoApiTypesObjectmeta from "../../types/objectmeta.pb"
|
|
8
8
|
import * as KpandaIoApiTypesPage from "../../types/page.pb"
|
|
9
9
|
|
|
10
|
+
export enum MetricSourceType {
|
|
11
|
+
METRICS_SOURCE_TYPE_UNSPECIFIED = "METRICS_SOURCE_TYPE_UNSPECIFIED",
|
|
12
|
+
Object = "Object",
|
|
13
|
+
Pods = "Pods",
|
|
14
|
+
Resource = "Resource",
|
|
15
|
+
External = "External",
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export enum MetricTargetType {
|
|
19
|
+
MetricTargetType_UNSPECIFIED = "MetricTargetType_UNSPECIFIED",
|
|
20
|
+
Utilization = "Utilization",
|
|
21
|
+
Value = "Value",
|
|
22
|
+
AverageValue = "AverageValue",
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export enum ResourceName {
|
|
26
|
+
RESOURCE_NAME_UNSPECIFIED = "RESOURCE_NAME_UNSPECIFIED",
|
|
27
|
+
cpu = "cpu",
|
|
28
|
+
memory = "memory",
|
|
29
|
+
}
|
|
30
|
+
|
|
10
31
|
export enum HorizontalPodAutoscalerStatusPhase {
|
|
11
32
|
PHASE_UNSPECIFIED = "PHASE_UNSPECIFIED",
|
|
12
33
|
Ready = "Ready",
|
|
@@ -36,14 +57,93 @@ export type HorizontalPodAutoscalerSpec = {
|
|
|
36
57
|
scaleTargetRef?: CrossVersionObjectReference
|
|
37
58
|
minReplicas?: number
|
|
38
59
|
maxReplicas?: number
|
|
39
|
-
|
|
60
|
+
metrics?: MetricSpec[]
|
|
61
|
+
behavior?: HorizontalPodAutoscalerBehavior
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export type MetricSpec = {
|
|
65
|
+
type?: MetricSourceType
|
|
66
|
+
object?: ObjectMetricSource
|
|
67
|
+
pods?: PodsMetricSource
|
|
68
|
+
resource?: ResourceMetricSource
|
|
69
|
+
external?: ExternalMetricSource
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export type HorizontalPodAutoscalerBehavior = {
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export type ObjectMetricSource = {
|
|
76
|
+
describedObject?: CrossVersionObjectReference
|
|
77
|
+
target?: MetricTarget
|
|
78
|
+
metric?: MetricIdentifier
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export type MetricTarget = {
|
|
82
|
+
type?: MetricTargetType
|
|
83
|
+
value?: string
|
|
84
|
+
averageValue?: string
|
|
85
|
+
averageUtilization?: number
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export type MetricValueStatus = {
|
|
89
|
+
value?: string
|
|
90
|
+
averageValue?: string
|
|
91
|
+
averageUtilization?: number
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export type ObjectMetricStatus = {
|
|
95
|
+
metric?: MetricIdentifier
|
|
96
|
+
current?: MetricValueStatus
|
|
97
|
+
describedObject?: CrossVersionObjectReference
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export type PodsMetricStatus = {
|
|
101
|
+
metric?: MetricIdentifier
|
|
102
|
+
current?: MetricValueStatus
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export type ResourceMetricStatus = {
|
|
106
|
+
name?: ResourceName
|
|
107
|
+
current?: MetricValueStatus
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export type ExternalMetricStatus = {
|
|
111
|
+
metric?: MetricIdentifier
|
|
112
|
+
current?: MetricValueStatus
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export type MetricStatus = {
|
|
116
|
+
type?: MetricSourceType
|
|
117
|
+
object?: ObjectMetricStatus
|
|
118
|
+
pods?: PodsMetricStatus
|
|
119
|
+
resource?: ResourceMetricStatus
|
|
120
|
+
external?: ExternalMetricStatus
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export type MetricIdentifier = {
|
|
124
|
+
name?: string
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export type PodsMetricSource = {
|
|
128
|
+
metric?: MetricIdentifier
|
|
129
|
+
target?: MetricTarget
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export type ResourceMetricSource = {
|
|
133
|
+
name?: ResourceName
|
|
134
|
+
target?: MetricTarget
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export type ExternalMetricSource = {
|
|
138
|
+
metric?: MetricIdentifier
|
|
139
|
+
target?: MetricTarget
|
|
40
140
|
}
|
|
41
141
|
|
|
42
142
|
export type HorizontalPodAutoscalerStatus = {
|
|
43
143
|
lastScaleTime?: string
|
|
44
144
|
currentReplicas?: number
|
|
45
145
|
desiredReplicas?: number
|
|
46
|
-
|
|
146
|
+
currentMetrics?: MetricStatus[]
|
|
47
147
|
phase?: HorizontalPodAutoscalerStatusPhase
|
|
48
148
|
conditions?: KpandaIoApiTypesObjectmeta.Condition[]
|
|
49
149
|
}
|
|
@@ -76,6 +176,7 @@ export type GetHorizontalPodAutoscalerJSONRequest = {
|
|
|
76
176
|
cluster?: string
|
|
77
177
|
namespace?: string
|
|
78
178
|
name?: string
|
|
179
|
+
stable?: boolean
|
|
79
180
|
}
|
|
80
181
|
|
|
81
182
|
export type GetHorizontalPodAutoscalerJSONResponse = {
|