@daocloud-proto/kpanda 0.11.3-244 → 0.11.3-246

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
+ }
@@ -13,6 +13,7 @@ export enum PluginName {
13
13
  Spiderpool = "Spiderpool",
14
14
  CustomMetrics = "CustomMetrics",
15
15
  CronHPA = "CronHPA",
16
+ VPA = "VPA",
16
17
  }
17
18
 
18
19
  export type Plugin = {
@@ -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"
@@ -667,6 +668,21 @@ export class Autoscaling {
667
668
  static UpdateCronHorizontalPodAutoscaler(req: KpandaIoApiAutoscalingV1alpha1Cronhorizontalpodautoscaler.UpdateCronHorizontalPodAutoscalerRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAutoscalingV1alpha1Cronhorizontalpodautoscaler.UpdateCronHorizontalPodAutoscalerResponse> {
668
669
  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
670
  }
671
+ static ListVerticalPodAutoscalers(req: KpandaIoApiAutoscalingV1alpha1Verticalpodautoscaler.ListVerticalPodAutoscalersRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAutoscalingV1alpha1Verticalpodautoscaler.ListVerticalPodAutoscalersResponse> {
672
+ 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"})
673
+ }
674
+ static GetVerticalPodAutoscalerJSON(req: KpandaIoApiAutoscalingV1alpha1Verticalpodautoscaler.GetVerticalPodAutoscalerJSONRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAutoscalingV1alpha1Verticalpodautoscaler.GetVerticalPodAutoscalerJSONResponse> {
675
+ 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"})
676
+ }
677
+ static CreateVerticalPodAutoscaler(req: KpandaIoApiAutoscalingV1alpha1Verticalpodautoscaler.CreateVerticalPodAutoscalerRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAutoscalingV1alpha1Verticalpodautoscaler.CreateVerticalPodAutoscalerResponse> {
678
+ 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)})
679
+ }
680
+ static UpdateVerticalPodAutoscaler(req: KpandaIoApiAutoscalingV1alpha1Verticalpodautoscaler.UpdateVerticalPodAutoscalerRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAutoscalingV1alpha1Verticalpodautoscaler.UpdateVerticalPodAutoscalerResponse> {
681
+ 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)})
682
+ }
683
+ static DeleteVerticalPodAutoscaler(req: KpandaIoApiAutoscalingV1alpha1Verticalpodautoscaler.DeleteVerticalPodAutoscalerRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
684
+ return fm.fetchReq<KpandaIoApiAutoscalingV1alpha1Verticalpodautoscaler.DeleteVerticalPodAutoscalerRequest, GoogleProtobufEmpty.Empty>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/verticalpodautoscalers/${req["name"]}`, {...initReq, method: "DELETE"})
685
+ }
670
686
  static ListCustomMetricSummary(req: KpandaIoApiAutoscalingV1alpha1Custommetric.ListCustomMetricSummaryRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAutoscalingV1alpha1Custommetric.ListCustomMetricSummaryResponse> {
671
687
  return fm.fetchReq<KpandaIoApiAutoscalingV1alpha1Custommetric.ListCustomMetricSummaryRequest, KpandaIoApiAutoscalingV1alpha1Custommetric.ListCustomMetricSummaryResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/custommetricsummary?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
672
688
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kpanda",
3
- "version":"0.11.3-244",
3
+ "version":"0.11.3-246",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {