@daocloud-proto/kpanda 0.10.6 → 0.11.0
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/autoscaling/v1alpha1/custommetric.pb.ts +46 -0
- package/kpanda.io/api/cloudshell/v1alpha1/cloudshell.pb.ts +1 -0
- package/kpanda.io/api/clustersetting/v1alpha1/clustersetting.pb.ts +1 -0
- package/kpanda.io/api/networking/v1alpha1/metallb.pb.ts +35 -0
- package/kpanda.io/api/v1alpha1/kpanda.pb.ts +11 -0
- package/package.json +1 -1
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
export enum MetricResourceKind {
|
|
8
|
+
KIND_UNSPECIFIED = "KIND_UNSPECIFIED",
|
|
9
|
+
Pod = "Pod",
|
|
10
|
+
Service = "Service",
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type ListCustomMetricSummaryRequest = {
|
|
14
|
+
cluster?: string
|
|
15
|
+
kind?: MetricResourceKind
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export type ListCustomMetricSummaryResponse = {
|
|
19
|
+
items?: string[]
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export type ListMetricValuesRequest = {
|
|
23
|
+
cluster?: string
|
|
24
|
+
namespace?: string
|
|
25
|
+
kind?: MetricResourceKind
|
|
26
|
+
kindName?: string
|
|
27
|
+
name?: string
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export type ListMetricValuesResponse = {
|
|
31
|
+
items?: CustomMetricValue[]
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export type CustomMetricValueDescribedObject = {
|
|
35
|
+
kind?: string
|
|
36
|
+
namespace?: string
|
|
37
|
+
name?: string
|
|
38
|
+
apiVersion?: string
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export type CustomMetricValue = {
|
|
42
|
+
metricName?: string
|
|
43
|
+
value?: string
|
|
44
|
+
timestamp?: string
|
|
45
|
+
describedObject?: CustomMetricValueDescribedObject
|
|
46
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
export type MetallbIPPool = {
|
|
10
|
+
metadata?: KpandaIoApiTypesObjectmeta.ObjectMeta
|
|
11
|
+
spec?: MetallbIPPoolSpec
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type MetallbIPPoolSpec = {
|
|
15
|
+
addresses?: string[]
|
|
16
|
+
autoAssign?: boolean
|
|
17
|
+
avoidBuggyIPs?: boolean
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export type ListMetallbIPPoolRequest = {
|
|
21
|
+
cluster?: string
|
|
22
|
+
namespace?: string
|
|
23
|
+
page?: number
|
|
24
|
+
pageSize?: number
|
|
25
|
+
sortBy?: KpandaIoApiTypesPage.SortBy
|
|
26
|
+
sortDir?: KpandaIoApiTypesPage.SortDir
|
|
27
|
+
name?: string
|
|
28
|
+
labelSelector?: string
|
|
29
|
+
fieldSelector?: string
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export type ListMetallbIPPoolResponse = {
|
|
33
|
+
iterms?: MetallbIPPool[]
|
|
34
|
+
pagination?: KpandaIoApiTypesPage.Pagination
|
|
35
|
+
}
|
|
@@ -17,6 +17,7 @@ import * as KpandaIoApiAppsV1alpha1Deployment from "../apps/v1alpha1/deployment.
|
|
|
17
17
|
import * as KpandaIoApiAppsV1alpha1Replicaset from "../apps/v1alpha1/replicaset.pb"
|
|
18
18
|
import * as KpandaIoApiAppsV1alpha1Request from "../apps/v1alpha1/request.pb"
|
|
19
19
|
import * as KpandaIoApiAppsV1alpha1Statefulset from "../apps/v1alpha1/statefulset.pb"
|
|
20
|
+
import * as KpandaIoApiAutoscalingV1alpha1Custommetric from "../autoscaling/v1alpha1/custommetric.pb"
|
|
20
21
|
import * as KpandaIoApiAutoscalingV1alpha1Horizontalpodautoscaler from "../autoscaling/v1alpha1/horizontalpodautoscaler.pb"
|
|
21
22
|
import * as KpandaIoApiBatchV1alpha1Cronjob from "../batch/v1alpha1/cronjob.pb"
|
|
22
23
|
import * as KpandaIoApiBatchV1alpha1Job from "../batch/v1alpha1/job.pb"
|
|
@@ -38,6 +39,7 @@ import * as KpandaIoApiCoreV1alpha1Service from "../core/v1alpha1/service.pb"
|
|
|
38
39
|
import * as KpandaIoApiGhippoV1alpha1Workspace from "../ghippo/v1alpha1/workspace.pb"
|
|
39
40
|
import * as KpandaIoApiInsightV1alpha1Insight from "../insight/v1alpha1/insight.pb"
|
|
40
41
|
import * as KpandaIoApiNetworkingV1alpha1Ingress from "../networking/v1alpha1/ingress.pb"
|
|
42
|
+
import * as KpandaIoApiNetworkingV1alpha1Metallb from "../networking/v1alpha1/metallb.pb"
|
|
41
43
|
import * as KpandaIoApiNetworkingV1alpha1Networkpolicy from "../networking/v1alpha1/networkpolicy.pb"
|
|
42
44
|
import * as KpandaIoApiRbacV1alpha1Clusterrolebinding from "../rbac/v1alpha1/clusterrolebinding.pb"
|
|
43
45
|
import * as KpandaIoApiRbacV1alpha1Common from "../rbac/v1alpha1/common.pb"
|
|
@@ -551,6 +553,9 @@ export class Networking {
|
|
|
551
553
|
static DeleteIngress(req: KpandaIoApiNetworkingV1alpha1Ingress.DeleteIngressRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
552
554
|
return fm.fetchReq<KpandaIoApiNetworkingV1alpha1Ingress.DeleteIngressRequest, GoogleProtobufEmpty.Empty>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/ingresses/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
553
555
|
}
|
|
556
|
+
static ListMetallbIPAddressPools(req: KpandaIoApiNetworkingV1alpha1Metallb.ListMetallbIPPoolRequest, initReq?: fm.InitReq): Promise<KpandaIoApiNetworkingV1alpha1Metallb.ListMetallbIPPoolResponse> {
|
|
557
|
+
return fm.fetchReq<KpandaIoApiNetworkingV1alpha1Metallb.ListMetallbIPPoolRequest, KpandaIoApiNetworkingV1alpha1Metallb.ListMetallbIPPoolResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/metallb/ippools?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
558
|
+
}
|
|
554
559
|
static ListClusterNetworkPolicies(req: KpandaIoApiNetworkingV1alpha1Networkpolicy.ListClusterNetworkPoliciesRequest, initReq?: fm.InitReq): Promise<KpandaIoApiNetworkingV1alpha1Networkpolicy.ListClusterNetworkPoliciesResponse> {
|
|
555
560
|
return fm.fetchReq<KpandaIoApiNetworkingV1alpha1Networkpolicy.ListClusterNetworkPoliciesRequest, KpandaIoApiNetworkingV1alpha1Networkpolicy.ListClusterNetworkPoliciesResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/networkpolicies?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
556
561
|
}
|
|
@@ -621,6 +626,12 @@ export class Autoscaling {
|
|
|
621
626
|
static UpdateHorizontalPodAutoscaler(req: KpandaIoApiAutoscalingV1alpha1Horizontalpodautoscaler.UpdateHorizontalPodAutoscalerRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAutoscalingV1alpha1Horizontalpodautoscaler.UpdateHorizontalPodAutoscalerResponse> {
|
|
622
627
|
return fm.fetchReq<KpandaIoApiAutoscalingV1alpha1Horizontalpodautoscaler.UpdateHorizontalPodAutoscalerRequest, KpandaIoApiAutoscalingV1alpha1Horizontalpodautoscaler.UpdateHorizontalPodAutoscalerResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/horizontalpodautoscalers/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
623
628
|
}
|
|
629
|
+
static ListCustomMetricSummary(req: KpandaIoApiAutoscalingV1alpha1Custommetric.ListCustomMetricSummaryRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAutoscalingV1alpha1Custommetric.ListCustomMetricSummaryResponse> {
|
|
630
|
+
return fm.fetchReq<KpandaIoApiAutoscalingV1alpha1Custommetric.ListCustomMetricSummaryRequest, KpandaIoApiAutoscalingV1alpha1Custommetric.ListCustomMetricSummaryResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/custommetricsummary?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
631
|
+
}
|
|
632
|
+
static ListMetricValues(req: KpandaIoApiAutoscalingV1alpha1Custommetric.ListMetricValuesRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAutoscalingV1alpha1Custommetric.ListMetricValuesResponse> {
|
|
633
|
+
return fm.fetchReq<KpandaIoApiAutoscalingV1alpha1Custommetric.ListMetricValuesRequest, KpandaIoApiAutoscalingV1alpha1Custommetric.ListMetricValuesResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/metricvalues?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
634
|
+
}
|
|
624
635
|
}
|
|
625
636
|
export class Storage {
|
|
626
637
|
static ListStorageClasses(req: KpandaIoApiStorageV1alpha1Storageclass.ListStorageClassesRequest, initReq?: fm.InitReq): Promise<KpandaIoApiStorageV1alpha1Storageclass.ListStorageClassesResponse> {
|