@daocloud-proto/kpanda 0.11.3-25 → 0.11.3-252
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/addon/v1alpha1/helmchart.pb.ts +3 -0
- package/kpanda.io/api/addon/v1alpha1/helmoperation.pb.ts +2 -0
- package/kpanda.io/api/addon/v1alpha1/helmrelease.pb.ts +3 -0
- package/kpanda.io/api/addon/v1alpha1/helmrepo.pb.ts +2 -0
- package/kpanda.io/api/apiextensions/v1alpha1/custom_resource_definition.pb.ts +12 -0
- package/kpanda.io/api/apps/v1alpha1/daemonset.pb.ts +2 -0
- package/kpanda.io/api/apps/v1alpha1/deployment.pb.ts +2 -0
- package/kpanda.io/api/apps/v1alpha1/replicaset.pb.ts +51 -0
- package/kpanda.io/api/apps/v1alpha1/request.pb.ts +1 -0
- package/kpanda.io/api/apps/v1alpha1/statefulset.pb.ts +2 -0
- package/kpanda.io/api/autoscaling/v1alpha1/cronhorizontalpodautoscaler.pb.ts +111 -0
- package/kpanda.io/api/autoscaling/v1alpha1/horizontalpodautoscaler.pb.ts +109 -2
- package/kpanda.io/api/autoscaling/v1alpha1/verticalpodautoscaler.pb.ts +164 -0
- 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/cloudshell/v1alpha1/cloudshell.pb.ts +1 -0
- package/kpanda.io/api/clusterlcm/v1alpha1/clusterlcm.pb.ts +26 -20
- package/kpanda.io/api/clusters/v1alpha1/cluster.pb.ts +3 -0
- package/kpanda.io/api/clustersetting/v1alpha1/clustersetting.pb.ts +3 -0
- package/kpanda.io/api/core/v1alpha1/configmap.pb.ts +2 -0
- package/kpanda.io/api/core/v1alpha1/event.pb.ts +1 -0
- package/kpanda.io/api/core/v1alpha1/limitrange.pb.ts +2 -0
- package/kpanda.io/api/core/v1alpha1/namespace.pb.ts +20 -2
- package/kpanda.io/api/core/v1alpha1/node.pb.ts +26 -0
- package/kpanda.io/api/core/v1alpha1/persistentvolumeclaim.pb.ts +2 -0
- package/kpanda.io/api/core/v1alpha1/pod.pb.ts +9 -0
- package/kpanda.io/api/core/v1alpha1/resourcequota.pb.ts +1 -0
- package/kpanda.io/api/core/v1alpha1/secret.pb.ts +2 -0
- package/kpanda.io/api/core/v1alpha1/service.pb.ts +2 -0
- package/kpanda.io/api/kangaroo/v1alpha1/image.pb.ts +90 -0
- package/kpanda.io/api/networking/v1alpha1/ingress.pb.ts +15 -0
- package/kpanda.io/api/networking/v1alpha1/metallb.pb.ts +0 -1
- package/kpanda.io/api/networking/v1alpha1/networkpolicy.pb.ts +2 -2
- package/kpanda.io/api/storage/v1alpha1/storageclass.pb.ts +1 -0
- package/kpanda.io/api/v1alpha1/kpanda.pb.ts +84 -1
- package/package.json +1 -1
|
@@ -13,6 +13,7 @@ export enum Category {
|
|
|
13
13
|
CATEGORY_NETWORKING = "CATEGORY_NETWORKING",
|
|
14
14
|
CATEGORY_MONITORING = "CATEGORY_MONITORING",
|
|
15
15
|
CATEGORY_DATABASE = "CATEGORY_DATABASE",
|
|
16
|
+
CATEGORY_DATASERVICE = "CATEGORY_DATASERVICE",
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
export type HelmChartVersion = {
|
|
@@ -71,6 +72,7 @@ export type ListHelmChartsRequest = {
|
|
|
71
72
|
pageSize?: number
|
|
72
73
|
category?: Category
|
|
73
74
|
repo?: string[]
|
|
75
|
+
required?: boolean
|
|
74
76
|
}
|
|
75
77
|
|
|
76
78
|
export type ListHelmChartsResponseCategoryItem = {
|
|
@@ -79,6 +81,7 @@ export type ListHelmChartsResponseCategoryItem = {
|
|
|
79
81
|
networkNums?: number
|
|
80
82
|
monitorNums?: number
|
|
81
83
|
databaseNums?: number
|
|
84
|
+
dataServiceNums?: number
|
|
82
85
|
}
|
|
83
86
|
|
|
84
87
|
export type ListHelmChartsResponse = {
|
|
@@ -44,6 +44,7 @@ export type ListClusterHelmOperationsRequest = {
|
|
|
44
44
|
sortDir?: KpandaIoApiTypesPage.SortDir
|
|
45
45
|
name?: string
|
|
46
46
|
releaseName?: string
|
|
47
|
+
fuzzyName?: string
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
export type ListClusterHelmOperationsResponse = {
|
|
@@ -62,6 +63,7 @@ export type ListHelmOperationsRequest = {
|
|
|
62
63
|
sortBy?: KpandaIoApiTypesPage.SortBy
|
|
63
64
|
sortDir?: KpandaIoApiTypesPage.SortDir
|
|
64
65
|
releaseName?: string
|
|
66
|
+
fuzzyName?: string
|
|
65
67
|
}
|
|
66
68
|
|
|
67
69
|
export type ListHelmOperationsResponse = {
|
|
@@ -97,6 +97,7 @@ export type ListClusterHelmReleasesRequest = {
|
|
|
97
97
|
name?: string
|
|
98
98
|
helmChartName?: string
|
|
99
99
|
helmChartRepo?: string
|
|
100
|
+
fuzzyName?: string
|
|
100
101
|
}
|
|
101
102
|
|
|
102
103
|
export type ListClusterHelmReleasesResponse = {
|
|
@@ -114,6 +115,7 @@ export type ListHelmReleasesRequest = {
|
|
|
114
115
|
annotations?: {[key: string]: string}
|
|
115
116
|
sortBy?: KpandaIoApiTypesPage.SortBy
|
|
116
117
|
sortDir?: KpandaIoApiTypesPage.SortDir
|
|
118
|
+
fuzzyName?: string
|
|
117
119
|
}
|
|
118
120
|
|
|
119
121
|
export type ListHelmReleasesResponse = {
|
|
@@ -168,6 +170,7 @@ export type ListHelmReleaseResourcesRequest = {
|
|
|
168
170
|
pageSize?: number
|
|
169
171
|
sortBy?: KpandaIoApiTypesPage.SortBy
|
|
170
172
|
sortDir?: KpandaIoApiTypesPage.SortDir
|
|
173
|
+
fuzzyName?: string
|
|
171
174
|
}
|
|
172
175
|
|
|
173
176
|
export type ListHelmReleaseResourcesResponse = {
|
|
@@ -69,6 +69,7 @@ export type ListCustomResourceDefinitionsRequest = {
|
|
|
69
69
|
labelSelector?: string
|
|
70
70
|
fieldSelector?: string
|
|
71
71
|
group?: string
|
|
72
|
+
fuzzyName?: string
|
|
72
73
|
}
|
|
73
74
|
|
|
74
75
|
export type ListCustomResourceDefinitionsResponse = {
|
|
@@ -141,6 +142,7 @@ export type ListClusterCustomResourcesRequest = {
|
|
|
141
142
|
name?: string
|
|
142
143
|
sortBy?: KpandaIoApiTypesPage.SortBy
|
|
143
144
|
sortDir?: KpandaIoApiTypesPage.SortDir
|
|
145
|
+
fuzzyName?: string
|
|
144
146
|
}
|
|
145
147
|
|
|
146
148
|
export type ListClusterCustomResourcesResponse = {
|
|
@@ -293,4 +295,14 @@ export type DeleteCustomResourceRequest = {
|
|
|
293
295
|
namespace?: string
|
|
294
296
|
resource?: string
|
|
295
297
|
name?: string
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
export type CreateResourceRequest = {
|
|
301
|
+
cluster?: string
|
|
302
|
+
namespace?: string
|
|
303
|
+
data?: string[]
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
export type CreateResourceResponse = {
|
|
307
|
+
data?: string[]
|
|
296
308
|
}
|
|
@@ -97,6 +97,7 @@ export type ListDaemonSetsRequest = {
|
|
|
97
97
|
sortDir?: KpandaIoApiTypesPage.SortDir
|
|
98
98
|
labelSelector?: string
|
|
99
99
|
fieldSelector?: string
|
|
100
|
+
fuzzyName?: string
|
|
100
101
|
}
|
|
101
102
|
|
|
102
103
|
export type ListClusterDaemonSetsRequest = {
|
|
@@ -109,6 +110,7 @@ export type ListClusterDaemonSetsRequest = {
|
|
|
109
110
|
sortDir?: KpandaIoApiTypesPage.SortDir
|
|
110
111
|
labelSelector?: string
|
|
111
112
|
fieldSelector?: string
|
|
113
|
+
fuzzyName?: string
|
|
112
114
|
}
|
|
113
115
|
|
|
114
116
|
export type PatchDaemonSetRequest = {
|
|
@@ -105,6 +105,7 @@ export type ListDeploymentsRequest = {
|
|
|
105
105
|
sortDir?: KpandaIoApiTypesPage.SortDir
|
|
106
106
|
labelSelector?: string
|
|
107
107
|
fieldSelector?: string
|
|
108
|
+
fuzzyName?: string
|
|
108
109
|
}
|
|
109
110
|
|
|
110
111
|
export type ListClusterDeploymentsRequest = {
|
|
@@ -117,6 +118,7 @@ export type ListClusterDeploymentsRequest = {
|
|
|
117
118
|
sortDir?: KpandaIoApiTypesPage.SortDir
|
|
118
119
|
labelSelector?: string
|
|
119
120
|
fieldSelector?: string
|
|
121
|
+
fuzzyName?: string
|
|
120
122
|
}
|
|
121
123
|
|
|
122
124
|
export type PatchDeploymentRequest = {
|
|
@@ -43,6 +43,23 @@ export type ReplicaSetCondition = {
|
|
|
43
43
|
message?: string
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
+
export type ListClusterReplicaSetsRequest = {
|
|
47
|
+
cluster?: string
|
|
48
|
+
page?: number
|
|
49
|
+
pageSize?: number
|
|
50
|
+
sortBy?: KpandaIoApiTypesPage.SortBy
|
|
51
|
+
sortDir?: KpandaIoApiTypesPage.SortDir
|
|
52
|
+
name?: string
|
|
53
|
+
fuzzyName?: string
|
|
54
|
+
labelSelector?: string
|
|
55
|
+
fieldSelector?: string
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export type ListClusterReplicaSetsResponse = {
|
|
59
|
+
items?: ReplicaSet[]
|
|
60
|
+
pagination?: KpandaIoApiTypesPage.Pagination
|
|
61
|
+
}
|
|
62
|
+
|
|
46
63
|
export type ListReplicaSetsRequest = {
|
|
47
64
|
cluster?: string
|
|
48
65
|
namespace?: string
|
|
@@ -55,9 +72,43 @@ export type ListReplicaSetsRequest = {
|
|
|
55
72
|
pageSize?: number
|
|
56
73
|
labelSelector?: string
|
|
57
74
|
fieldSelector?: string
|
|
75
|
+
fuzzyName?: string
|
|
58
76
|
}
|
|
59
77
|
|
|
60
78
|
export type ListReplicaSetsResponse = {
|
|
61
79
|
items?: ReplicaSet[]
|
|
62
80
|
pagination?: KpandaIoApiTypesPage.Pagination
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export type GetReplicaSetRequest = {
|
|
84
|
+
cluster?: string
|
|
85
|
+
namespace?: string
|
|
86
|
+
name?: string
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export type GetReplicaSetJSONRequest = {
|
|
90
|
+
cluster?: string
|
|
91
|
+
namespace?: string
|
|
92
|
+
name?: string
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export type GetReplicaSetJSONResponse = {
|
|
96
|
+
data?: string
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export type UpdateReplicaSetRequest = {
|
|
100
|
+
cluster?: string
|
|
101
|
+
namespace?: string
|
|
102
|
+
name?: string
|
|
103
|
+
data?: string
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export type UpdateReplicaSetResponse = {
|
|
107
|
+
data?: string
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export type DeleteReplicaSetRequest = {
|
|
111
|
+
cluster?: string
|
|
112
|
+
namespace?: string
|
|
113
|
+
name?: string
|
|
63
114
|
}
|
|
@@ -109,6 +109,7 @@ export type ListStatefulSetsRequest = {
|
|
|
109
109
|
sortDir?: KpandaIoApiTypesPage.SortDir
|
|
110
110
|
labelSelector?: string
|
|
111
111
|
fieldSelector?: string
|
|
112
|
+
fuzzyName?: string
|
|
112
113
|
}
|
|
113
114
|
|
|
114
115
|
export type ListClusterStatefulSetsRequest = {
|
|
@@ -121,6 +122,7 @@ export type ListClusterStatefulSetsRequest = {
|
|
|
121
122
|
sortDir?: KpandaIoApiTypesPage.SortDir
|
|
122
123
|
labelSelector?: string
|
|
123
124
|
fieldSelector?: string
|
|
125
|
+
fuzzyName?: string
|
|
124
126
|
}
|
|
125
127
|
|
|
126
128
|
export type PatchStatefulSetRequest = {
|
|
@@ -0,0 +1,111 @@
|
|
|
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 KpandaIoApiTypesObjectmeta from "../../types/objectmeta.pb"
|
|
8
|
+
import * as KpandaIoApiTypesPage from "../../types/page.pb"
|
|
9
|
+
import * as KpandaIoApiAutoscalingV1alpha1Horizontalpodautoscaler from "./horizontalpodautoscaler.pb"
|
|
10
|
+
|
|
11
|
+
export enum CronHPAConditionJobState {
|
|
12
|
+
JOB_STATE_UNSPECIFIED = "JOB_STATE_UNSPECIFIED",
|
|
13
|
+
Succeed = "Succeed",
|
|
14
|
+
Failed = "Failed",
|
|
15
|
+
Submitted = "Submitted",
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export enum ListCronHorizontalPodAutoscalersRequestKind {
|
|
19
|
+
KIND_UNSPECIFIED = "KIND_UNSPECIFIED",
|
|
20
|
+
Deployment = "Deployment",
|
|
21
|
+
StatefulSet = "StatefulSet",
|
|
22
|
+
ReplicaSet = "ReplicaSet",
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type CronHorizontalPodAutoscaler = {
|
|
26
|
+
metadata?: KpandaIoApiTypesObjectmeta.ObjectMeta
|
|
27
|
+
spec?: CronHorizontalPodAutoscalerSpec
|
|
28
|
+
status?: CronHorizontalPodAutoscalerStatus
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export type CronHorizontalPodAutoscalerSpec = {
|
|
32
|
+
excludeDates?: string[]
|
|
33
|
+
scaleTargetRef?: KpandaIoApiAutoscalingV1alpha1Horizontalpodautoscaler.CrossVersionObjectReference
|
|
34
|
+
jobs?: CronHPAJob[]
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type CronHPAJob = {
|
|
38
|
+
name?: string
|
|
39
|
+
schedule?: string
|
|
40
|
+
runOnce?: boolean
|
|
41
|
+
targetSize?: number
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export type CronHorizontalPodAutoscalerStatus = {
|
|
45
|
+
excludeDates?: string[]
|
|
46
|
+
scaleTargetRef?: KpandaIoApiAutoscalingV1alpha1Horizontalpodautoscaler.CrossVersionObjectReference
|
|
47
|
+
conditions?: CronHPACondition[]
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export type CronHPACondition = {
|
|
51
|
+
name?: string
|
|
52
|
+
jobId?: string
|
|
53
|
+
schedule?: string
|
|
54
|
+
targetSize?: number
|
|
55
|
+
runOnce?: boolean
|
|
56
|
+
jobState?: CronHPAConditionJobState
|
|
57
|
+
lastProbeTime?: string
|
|
58
|
+
message?: string
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export type ListCronHorizontalPodAutoscalersRequest = {
|
|
62
|
+
cluster?: string
|
|
63
|
+
namespace?: string
|
|
64
|
+
page?: number
|
|
65
|
+
pageSize?: number
|
|
66
|
+
kind?: ListCronHorizontalPodAutoscalersRequestKind
|
|
67
|
+
name?: string
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export type ListCronHorizontalPodAutoscalersResponse = {
|
|
71
|
+
items?: CronHorizontalPodAutoscaler[]
|
|
72
|
+
pagination?: KpandaIoApiTypesPage.Pagination
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export type CreateCronHorizontalPodAutoscalerRequest = {
|
|
76
|
+
cluster?: string
|
|
77
|
+
namespace?: string
|
|
78
|
+
data?: string
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export type CreateCronHorizontalPodAutoscalerResponse = {
|
|
82
|
+
data?: string
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export type GetCronHorizontalPodAutoscalerJSONRequest = {
|
|
86
|
+
cluster?: string
|
|
87
|
+
namespace?: string
|
|
88
|
+
name?: string
|
|
89
|
+
stable?: boolean
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export type GetCronHorizontalPodAutoscalerJSONResponse = {
|
|
93
|
+
data?: string
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export type UpdateCronHorizontalPodAutoscalerRequest = {
|
|
97
|
+
cluster?: string
|
|
98
|
+
namespace?: string
|
|
99
|
+
name?: string
|
|
100
|
+
data?: string
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export type UpdateCronHorizontalPodAutoscalerResponse = {
|
|
104
|
+
data?: string
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export type DeleteCronHorizontalPodAutoscalerRequest = {
|
|
108
|
+
cluster?: string
|
|
109
|
+
namespace?: string
|
|
110
|
+
name?: string
|
|
111
|
+
}
|
|
@@ -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,99 @@ 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
|
+
scaleUp?: HPAScalingRules
|
|
74
|
+
scaleDown?: HPAScalingRules
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export type HPAScalingRules = {
|
|
78
|
+
stabilizationWindowSeconds?: number
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export type ObjectMetricSource = {
|
|
82
|
+
describedObject?: CrossVersionObjectReference
|
|
83
|
+
target?: MetricTarget
|
|
84
|
+
metric?: MetricIdentifier
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export type MetricTarget = {
|
|
88
|
+
type?: MetricTargetType
|
|
89
|
+
value?: string
|
|
90
|
+
averageValue?: string
|
|
91
|
+
averageUtilization?: number
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export type MetricValueStatus = {
|
|
95
|
+
value?: string
|
|
96
|
+
averageValue?: string
|
|
97
|
+
averageUtilization?: number
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export type ObjectMetricStatus = {
|
|
101
|
+
metric?: MetricIdentifier
|
|
102
|
+
current?: MetricValueStatus
|
|
103
|
+
describedObject?: CrossVersionObjectReference
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export type PodsMetricStatus = {
|
|
107
|
+
metric?: MetricIdentifier
|
|
108
|
+
current?: MetricValueStatus
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export type ResourceMetricStatus = {
|
|
112
|
+
name?: ResourceName
|
|
113
|
+
current?: MetricValueStatus
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export type ExternalMetricStatus = {
|
|
117
|
+
metric?: MetricIdentifier
|
|
118
|
+
current?: MetricValueStatus
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export type MetricStatus = {
|
|
122
|
+
type?: MetricSourceType
|
|
123
|
+
object?: ObjectMetricStatus
|
|
124
|
+
pods?: PodsMetricStatus
|
|
125
|
+
resource?: ResourceMetricStatus
|
|
126
|
+
external?: ExternalMetricStatus
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export type MetricIdentifier = {
|
|
130
|
+
name?: string
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export type PodsMetricSource = {
|
|
134
|
+
metric?: MetricIdentifier
|
|
135
|
+
target?: MetricTarget
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export type ResourceMetricSource = {
|
|
139
|
+
name?: ResourceName
|
|
140
|
+
target?: MetricTarget
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export type ExternalMetricSource = {
|
|
144
|
+
metric?: MetricIdentifier
|
|
145
|
+
target?: MetricTarget
|
|
40
146
|
}
|
|
41
147
|
|
|
42
148
|
export type HorizontalPodAutoscalerStatus = {
|
|
43
149
|
lastScaleTime?: string
|
|
44
150
|
currentReplicas?: number
|
|
45
151
|
desiredReplicas?: number
|
|
46
|
-
|
|
152
|
+
currentMetrics?: MetricStatus[]
|
|
47
153
|
phase?: HorizontalPodAutoscalerStatusPhase
|
|
48
154
|
conditions?: KpandaIoApiTypesObjectmeta.Condition[]
|
|
49
155
|
}
|
|
@@ -76,6 +182,7 @@ export type GetHorizontalPodAutoscalerJSONRequest = {
|
|
|
76
182
|
cluster?: string
|
|
77
183
|
namespace?: string
|
|
78
184
|
name?: string
|
|
185
|
+
stable?: boolean
|
|
79
186
|
}
|
|
80
187
|
|
|
81
188
|
export type GetHorizontalPodAutoscalerJSONResponse = {
|
|
@@ -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
|
+
}
|