@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.
@@ -113,6 +113,7 @@ export type ListClusterWorkloadsRequest = {
113
113
  sortDir?: KpandaIoApiTypesPage.SortDir
114
114
  labelSelector?: string
115
115
  fieldSelector?: string
116
+ fuzzyName?: string
116
117
  }
117
118
 
118
119
  export type CreateWorkloadByJSONRequest = {
@@ -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
- targetCPUUtilizationPercentage?: number
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
- currentCPUUtilizationPercentage?: number
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 = {
@@ -81,6 +81,7 @@ export type ListJobsByCronJobNameRequest = {
81
81
  sortBy?: KpandaIoApiTypesPage.SortBy
82
82
  sortDir?: KpandaIoApiTypesPage.SortDir
83
83
  name?: string
84
+ fuzzyName?: string
84
85
  }
85
86
 
86
87
  export type DeleteCronJobRequest = {
@@ -69,6 +69,7 @@ export type ListBatchRequest = {
69
69
  name?: string
70
70
  labelSelector?: string
71
71
  fieldSelector?: string
72
+ fuzzyName?: string
72
73
  }
73
74
 
74
75
  export type ListClusterJobsResponse = {
@@ -175,6 +175,7 @@ export type ListClusterlcmOpsRequest = {
175
175
  targetCluster?: string
176
176
  action?: ListClusterlcmOpsRequestAction
177
177
  phase?: Phase
178
+ fuzzyName?: string
178
179
  }
179
180
 
180
181
  export type ListClusterlcmOpsResponse = {
@@ -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?: string
27
- conditions?: NamespaceCondition[]
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 = {
@@ -40,6 +40,7 @@ export type ListStorageClassesRequest = {
40
40
  fieldSelector?: string
41
41
  provisioner?: string
42
42
  reclaimPolicy?: string
43
+ fuzzyName?: string
43
44
  }
44
45
 
45
46
  export type ListStorageClassesResponse = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kpanda",
3
- "version":"0.11.3-83",
3
+ "version":"0.11.3-89",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {