@daocloud-proto/kpanda 0.11.3-83 → 0.11.3-89
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.
- package/kpanda.io/api/apps/v1alpha1/request.pb.ts +1 -0
- package/kpanda.io/api/autoscaling/v1alpha1/horizontalpodautoscaler.pb.ts +103 -2
- package/kpanda.io/api/batch/v1alpha1/cronjob.pb.ts +1 -0
- package/kpanda.io/api/batch/v1alpha1/job.pb.ts +1 -0
- package/kpanda.io/api/clusterlcm/v1alpha1/clusterlcm.pb.ts +1 -0
- package/kpanda.io/api/core/v1alpha1/limitrange.pb.ts +2 -0
- package/kpanda.io/api/core/v1alpha1/namespace.pb.ts +10 -2
- package/kpanda.io/api/storage/v1alpha1/storageclass.pb.ts +1 -0
- package/package.json +1 -1
|
@@ -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 = {
|
|
@@ -33,6 +33,7 @@ export type ListClusterLimitRangesRequest = {
|
|
|
33
33
|
name?: string
|
|
34
34
|
labelSelector?: string
|
|
35
35
|
fieldSelector?: string
|
|
36
|
+
fuzzyName?: string
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
export type ListClusterLimitRangesResponse = {
|
|
@@ -50,6 +51,7 @@ export type ListLimitRangesRequest = {
|
|
|
50
51
|
sortDir?: KpandaIoApiTypesPage.SortDir
|
|
51
52
|
labelSelector?: string
|
|
52
53
|
fieldSelector?: string
|
|
54
|
+
fuzzyName?: string
|
|
53
55
|
}
|
|
54
56
|
|
|
55
57
|
export type ListLimitRangesResponse = {
|
|
@@ -7,6 +7,12 @@
|
|
|
7
7
|
import * as KpandaIoApiTypesObjectmeta from "../../types/objectmeta.pb"
|
|
8
8
|
import * as KpandaIoApiTypesPage from "../../types/page.pb"
|
|
9
9
|
|
|
10
|
+
export enum NamespacePhase {
|
|
11
|
+
NAMESPACE_PHASE_UNSPECIFIED = "NAMESPACE_PHASE_UNSPECIFIED",
|
|
12
|
+
Active = "Active",
|
|
13
|
+
Terminating = "Terminating",
|
|
14
|
+
}
|
|
15
|
+
|
|
10
16
|
export enum ListClusterNamespaceSummaryResponseScope {
|
|
11
17
|
SCOPE_UNSPECIFIED = "SCOPE_UNSPECIFIED",
|
|
12
18
|
Cluster = "Cluster",
|
|
@@ -16,6 +22,7 @@ export enum ListClusterNamespaceSummaryResponseScope {
|
|
|
16
22
|
export type Namespace = {
|
|
17
23
|
metadata?: KpandaIoApiTypesObjectmeta.ObjectMeta
|
|
18
24
|
spec?: NamespaceSpec
|
|
25
|
+
status?: NamespaceStatus
|
|
19
26
|
}
|
|
20
27
|
|
|
21
28
|
export type NamespaceSpec = {
|
|
@@ -23,8 +30,8 @@ export type NamespaceSpec = {
|
|
|
23
30
|
}
|
|
24
31
|
|
|
25
32
|
export type NamespaceStatus = {
|
|
26
|
-
phase?:
|
|
27
|
-
conditions?:
|
|
33
|
+
phase?: NamespacePhase
|
|
34
|
+
conditions?: KpandaIoApiTypesObjectmeta.Condition[]
|
|
28
35
|
}
|
|
29
36
|
|
|
30
37
|
export type NamespaceCondition = {
|
|
@@ -66,6 +73,7 @@ export type ListClusterNamespacesRequest = {
|
|
|
66
73
|
sortDir?: KpandaIoApiTypesPage.SortDir
|
|
67
74
|
labelSelector?: string
|
|
68
75
|
fieldSelector?: string
|
|
76
|
+
fuzzyName?: string
|
|
69
77
|
}
|
|
70
78
|
|
|
71
79
|
export type ListClusterNamespacesResponse = {
|