@daocloud-proto/kpanda 0.11.3-244 → 0.11.3-248
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.
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as KpandaIoApiCoreV1alpha1Pod from "../../core/v1alpha1/pod.pb"
|
|
8
|
+
import * as KpandaIoApiTypesObjectmeta from "../../types/objectmeta.pb"
|
|
9
|
+
import * as KpandaIoApiTypesPage from "../../types/page.pb"
|
|
10
|
+
import * as KpandaIoApiTypesTypes from "../../types/types.pb"
|
|
11
|
+
import * as KpandaIoApiAutoscalingV1alpha1Horizontalpodautoscaler from "./horizontalpodautoscaler.pb"
|
|
12
|
+
|
|
13
|
+
export enum UpdateMode {
|
|
14
|
+
UPDATE_MODE_UNSPECIFIED = "UPDATE_MODE_UNSPECIFIED",
|
|
15
|
+
Off = "Off",
|
|
16
|
+
Initial = "Initial",
|
|
17
|
+
Recreate = "Recreate",
|
|
18
|
+
Auto = "Auto",
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export enum ContainerControlledValues {
|
|
22
|
+
CONTAINER_CONTROLLED_VALUES_UNSPECIFIED = "CONTAINER_CONTROLLED_VALUES_UNSPECIFIED",
|
|
23
|
+
RequestsAndLimits = "RequestsAndLimits",
|
|
24
|
+
RequestsOnly = "RequestsOnly",
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export enum VerticalPodAutoscalerConditionType {
|
|
28
|
+
VERTICAL_POD_AUTOSCALER_CONDITION_TYPE_UNSPECIFIED = "VERTICAL_POD_AUTOSCALER_CONDITION_TYPE_UNSPECIFIED",
|
|
29
|
+
RecommendationProvided = "RecommendationProvided",
|
|
30
|
+
LowConfidence = "LowConfidence",
|
|
31
|
+
NoPodsMatched = "NoPodsMatched",
|
|
32
|
+
FetchingHistory = "FetchingHistory",
|
|
33
|
+
ConfigDeprecated = "ConfigDeprecated",
|
|
34
|
+
ConfigUnsupported = "ConfigUnsupported",
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export enum ContainerResourcePolicyContainerScalingMode {
|
|
38
|
+
CONTAINER_SCALING_MODE_UNSPECIFIED = "CONTAINER_SCALING_MODE_UNSPECIFIED",
|
|
39
|
+
Auto = "Auto",
|
|
40
|
+
Off = "Off",
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export enum ListVerticalPodAutoscalersRequestKind {
|
|
44
|
+
KIND_UNSPECIFIED = "KIND_UNSPECIFIED",
|
|
45
|
+
Deployment = "Deployment",
|
|
46
|
+
StatefulSet = "StatefulSet",
|
|
47
|
+
DaemonSet = "DaemonSet",
|
|
48
|
+
ReplicaSet = "ReplicaSet",
|
|
49
|
+
Job = "Job",
|
|
50
|
+
CronJob = "CronJob",
|
|
51
|
+
ReplicationController = "ReplicationController",
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export type VerticalPodAutoscaler = {
|
|
55
|
+
metadata?: KpandaIoApiTypesObjectmeta.ObjectMeta
|
|
56
|
+
spec?: VerticalPodAutoscalerSpec
|
|
57
|
+
status?: VerticalPodAutoscalerStatus
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export type VerticalPodAutoscalerSpec = {
|
|
61
|
+
targetRef?: KpandaIoApiAutoscalingV1alpha1Horizontalpodautoscaler.CrossVersionObjectReference
|
|
62
|
+
updatePolicy?: PodUpdatePolicy
|
|
63
|
+
resourcePolicy?: PodResourcePolicy
|
|
64
|
+
recommenders?: VerticalPodAutoscalerRecommenderSelector[]
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export type PodUpdatePolicy = {
|
|
68
|
+
updateMode?: UpdateMode
|
|
69
|
+
minReplicas?: number
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export type PodResourcePolicy = {
|
|
73
|
+
containerPolicies?: ContainerResourcePolicy[]
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export type ContainerResourcePolicy = {
|
|
77
|
+
containerName?: string
|
|
78
|
+
mode?: ContainerResourcePolicyContainerScalingMode
|
|
79
|
+
minAllowed?: KpandaIoApiCoreV1alpha1Pod.ResourceList
|
|
80
|
+
maxAllowed?: KpandaIoApiCoreV1alpha1Pod.ResourceList
|
|
81
|
+
controlledResources?: KpandaIoApiAutoscalingV1alpha1Horizontalpodautoscaler.ResourceName[]
|
|
82
|
+
controlleValues?: ContainerControlledValues
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export type VerticalPodAutoscalerRecommenderSelector = {
|
|
86
|
+
name?: string
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export type VerticalPodAutoscalerStatus = {
|
|
90
|
+
recommendation?: RecommendedPodResources
|
|
91
|
+
conditions?: VerticalPodAutoscalerCondition[]
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export type RecommendedPodResources = {
|
|
95
|
+
containerRecommendations?: RecommendedContainerResources[]
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export type RecommendedContainerResources = {
|
|
99
|
+
containerName?: string
|
|
100
|
+
target?: KpandaIoApiCoreV1alpha1Pod.ResourceList
|
|
101
|
+
lowerBound?: KpandaIoApiCoreV1alpha1Pod.ResourceList
|
|
102
|
+
upperBound?: KpandaIoApiCoreV1alpha1Pod.ResourceList
|
|
103
|
+
uncappedTarget?: KpandaIoApiCoreV1alpha1Pod.ResourceList
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export type VerticalPodAutoscalerCondition = {
|
|
107
|
+
type?: VerticalPodAutoscalerConditionType
|
|
108
|
+
status?: KpandaIoApiTypesTypes.ConditionStatus
|
|
109
|
+
lastTransitionTime?: string
|
|
110
|
+
reason?: string
|
|
111
|
+
message?: string
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export type ListVerticalPodAutoscalersRequest = {
|
|
115
|
+
cluster?: string
|
|
116
|
+
namespace?: string
|
|
117
|
+
page?: number
|
|
118
|
+
pageSize?: number
|
|
119
|
+
kind?: ListVerticalPodAutoscalersRequestKind
|
|
120
|
+
kindName?: string
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export type ListVerticalPodAutoscalersResponse = {
|
|
124
|
+
items?: VerticalPodAutoscaler[]
|
|
125
|
+
pagination?: KpandaIoApiTypesPage.Pagination
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export type GetVerticalPodAutoscalerJSONRequest = {
|
|
129
|
+
cluster?: string
|
|
130
|
+
namespace?: string
|
|
131
|
+
name?: string
|
|
132
|
+
stable?: boolean
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export type GetVerticalPodAutoscalerJSONResponse = {
|
|
136
|
+
data?: string
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export type CreateVerticalPodAutoscalerRequest = {
|
|
140
|
+
cluster?: string
|
|
141
|
+
namespace?: string
|
|
142
|
+
data?: string
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export type CreateVerticalPodAutoscalerResponse = {
|
|
146
|
+
data?: string
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export type UpdateVerticalPodAutoscalerRequest = {
|
|
150
|
+
cluster?: string
|
|
151
|
+
namespace?: string
|
|
152
|
+
name?: string
|
|
153
|
+
data?: string
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export type UpdateVerticalPodAutoscalerResponse = {
|
|
157
|
+
data?: string
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export type DeleteVerticalPodAutoscalerRequest = {
|
|
161
|
+
cluster?: string
|
|
162
|
+
namespace?: string
|
|
163
|
+
name?: string
|
|
164
|
+
}
|
|
@@ -206,4 +206,30 @@ export type ListClusterNodeSummaryRequest = {
|
|
|
206
206
|
|
|
207
207
|
export type ListClusterNodeSummaryResponse = {
|
|
208
208
|
data?: NodeSummary[]
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export type BatchBindNodeToNamespaceRequest = {
|
|
212
|
+
cluster?: string
|
|
213
|
+
namespace?: string
|
|
214
|
+
nodeNames?: string[]
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export type BatchBindNodeToNamespaceResponse = {
|
|
218
|
+
successfulResults?: BindNodeToNamespaceResult[]
|
|
219
|
+
failedResults?: BindNodeToNamespaceResult[]
|
|
220
|
+
nsError?: string
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export type BindNodeToNamespaceResult = {
|
|
224
|
+
nodeName?: string
|
|
225
|
+
error?: string
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export type UnbindNodeToNamespaceRequest = {
|
|
229
|
+
cluster?: string
|
|
230
|
+
namespace?: string
|
|
231
|
+
name?: string
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export type UnbindNodeToNamespaceResponse = {
|
|
209
235
|
}
|
|
@@ -20,6 +20,7 @@ import * as KpandaIoApiAppsV1alpha1Statefulset from "../apps/v1alpha1/statefulse
|
|
|
20
20
|
import * as KpandaIoApiAutoscalingV1alpha1Cronhorizontalpodautoscaler from "../autoscaling/v1alpha1/cronhorizontalpodautoscaler.pb"
|
|
21
21
|
import * as KpandaIoApiAutoscalingV1alpha1Custommetric from "../autoscaling/v1alpha1/custommetric.pb"
|
|
22
22
|
import * as KpandaIoApiAutoscalingV1alpha1Horizontalpodautoscaler from "../autoscaling/v1alpha1/horizontalpodautoscaler.pb"
|
|
23
|
+
import * as KpandaIoApiAutoscalingV1alpha1Verticalpodautoscaler from "../autoscaling/v1alpha1/verticalpodautoscaler.pb"
|
|
23
24
|
import * as KpandaIoApiBatchV1alpha1Cronjob from "../batch/v1alpha1/cronjob.pb"
|
|
24
25
|
import * as KpandaIoApiBatchV1alpha1Job from "../batch/v1alpha1/job.pb"
|
|
25
26
|
import * as KpandaIoApiCloudshellV1alpha1Cloudshell from "../cloudshell/v1alpha1/cloudshell.pb"
|
|
@@ -355,6 +356,12 @@ export class Core {
|
|
|
355
356
|
static UnCordonNode(req: KpandaIoApiCoreV1alpha1Node.CordonNodeRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Node.Node> {
|
|
356
357
|
return fm.fetchReq<KpandaIoApiCoreV1alpha1Node.CordonNodeRequest, KpandaIoApiCoreV1alpha1Node.Node>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/nodes/${req["node"]}/uncordon`, {...initReq, method: "POST"})
|
|
357
358
|
}
|
|
359
|
+
static BatchBindNodeToNamespace(req: KpandaIoApiCoreV1alpha1Node.BatchBindNodeToNamespaceRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Node.BatchBindNodeToNamespaceResponse> {
|
|
360
|
+
return fm.fetchReq<KpandaIoApiCoreV1alpha1Node.BatchBindNodeToNamespaceRequest, KpandaIoApiCoreV1alpha1Node.BatchBindNodeToNamespaceResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/nodes:batchBindNamespace`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
361
|
+
}
|
|
362
|
+
static UnbindNodeToNamespace(req: KpandaIoApiCoreV1alpha1Node.UnbindNodeToNamespaceRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Node.UnbindNodeToNamespaceResponse> {
|
|
363
|
+
return fm.fetchReq<KpandaIoApiCoreV1alpha1Node.UnbindNodeToNamespaceRequest, KpandaIoApiCoreV1alpha1Node.UnbindNodeToNamespaceResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/nodes/${req["name"]}:unbindNamespace`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
364
|
+
}
|
|
358
365
|
static ListAllPods(req: KpandaIoApiCoreV1alpha1Pod.ListAllPodsRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Pod.ListPodsResponse> {
|
|
359
366
|
return fm.fetchReq<KpandaIoApiCoreV1alpha1Pod.ListAllPodsRequest, KpandaIoApiCoreV1alpha1Pod.ListPodsResponse>(`/apis/kpanda.io/v1alpha1/asl/pods?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
360
367
|
}
|
|
@@ -667,6 +674,21 @@ export class Autoscaling {
|
|
|
667
674
|
static UpdateCronHorizontalPodAutoscaler(req: KpandaIoApiAutoscalingV1alpha1Cronhorizontalpodautoscaler.UpdateCronHorizontalPodAutoscalerRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAutoscalingV1alpha1Cronhorizontalpodautoscaler.UpdateCronHorizontalPodAutoscalerResponse> {
|
|
668
675
|
return fm.fetchReq<KpandaIoApiAutoscalingV1alpha1Cronhorizontalpodautoscaler.UpdateCronHorizontalPodAutoscalerRequest, KpandaIoApiAutoscalingV1alpha1Cronhorizontalpodautoscaler.UpdateCronHorizontalPodAutoscalerResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/cronhorizontalpodautoscalers/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
669
676
|
}
|
|
677
|
+
static ListVerticalPodAutoscalers(req: KpandaIoApiAutoscalingV1alpha1Verticalpodautoscaler.ListVerticalPodAutoscalersRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAutoscalingV1alpha1Verticalpodautoscaler.ListVerticalPodAutoscalersResponse> {
|
|
678
|
+
return fm.fetchReq<KpandaIoApiAutoscalingV1alpha1Verticalpodautoscaler.ListVerticalPodAutoscalersRequest, KpandaIoApiAutoscalingV1alpha1Verticalpodautoscaler.ListVerticalPodAutoscalersResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/verticalpodautoscalers?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
679
|
+
}
|
|
680
|
+
static GetVerticalPodAutoscalerJSON(req: KpandaIoApiAutoscalingV1alpha1Verticalpodautoscaler.GetVerticalPodAutoscalerJSONRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAutoscalingV1alpha1Verticalpodautoscaler.GetVerticalPodAutoscalerJSONResponse> {
|
|
681
|
+
return fm.fetchReq<KpandaIoApiAutoscalingV1alpha1Verticalpodautoscaler.GetVerticalPodAutoscalerJSONRequest, KpandaIoApiAutoscalingV1alpha1Verticalpodautoscaler.GetVerticalPodAutoscalerJSONResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/verticalpodautoscalers/${req["name"]}/json?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
682
|
+
}
|
|
683
|
+
static CreateVerticalPodAutoscaler(req: KpandaIoApiAutoscalingV1alpha1Verticalpodautoscaler.CreateVerticalPodAutoscalerRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAutoscalingV1alpha1Verticalpodautoscaler.CreateVerticalPodAutoscalerResponse> {
|
|
684
|
+
return fm.fetchReq<KpandaIoApiAutoscalingV1alpha1Verticalpodautoscaler.CreateVerticalPodAutoscalerRequest, KpandaIoApiAutoscalingV1alpha1Verticalpodautoscaler.CreateVerticalPodAutoscalerResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/verticalpodautoscalers`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
685
|
+
}
|
|
686
|
+
static UpdateVerticalPodAutoscaler(req: KpandaIoApiAutoscalingV1alpha1Verticalpodautoscaler.UpdateVerticalPodAutoscalerRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAutoscalingV1alpha1Verticalpodautoscaler.UpdateVerticalPodAutoscalerResponse> {
|
|
687
|
+
return fm.fetchReq<KpandaIoApiAutoscalingV1alpha1Verticalpodautoscaler.UpdateVerticalPodAutoscalerRequest, KpandaIoApiAutoscalingV1alpha1Verticalpodautoscaler.UpdateVerticalPodAutoscalerResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/verticalpodautoscalers/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
688
|
+
}
|
|
689
|
+
static DeleteVerticalPodAutoscaler(req: KpandaIoApiAutoscalingV1alpha1Verticalpodautoscaler.DeleteVerticalPodAutoscalerRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
690
|
+
return fm.fetchReq<KpandaIoApiAutoscalingV1alpha1Verticalpodautoscaler.DeleteVerticalPodAutoscalerRequest, GoogleProtobufEmpty.Empty>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/verticalpodautoscalers/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
691
|
+
}
|
|
670
692
|
static ListCustomMetricSummary(req: KpandaIoApiAutoscalingV1alpha1Custommetric.ListCustomMetricSummaryRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAutoscalingV1alpha1Custommetric.ListCustomMetricSummaryResponse> {
|
|
671
693
|
return fm.fetchReq<KpandaIoApiAutoscalingV1alpha1Custommetric.ListCustomMetricSummaryRequest, KpandaIoApiAutoscalingV1alpha1Custommetric.ListCustomMetricSummaryResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/custommetricsummary?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
672
694
|
}
|