@daocloud-proto/kpanda 0.9.9-6 → 0.10.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.
@@ -33,6 +33,7 @@ export type HelmOperationStatus = {
33
33
  jobCreated?: boolean
34
34
  phase?: HelmOperationStatusPhase
35
35
  podCreated?: boolean
36
+ conditions?: KpandaIoApiTypesObjectmeta.Condition[]
36
37
  }
37
38
 
38
39
  export type ListClusterHelmOperationsRequest = {
@@ -4,6 +4,7 @@
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
6
 
7
+ import * as KpandaIoApiCoreV1alpha1Persistentvolumeclaim from "../../core/v1alpha1/persistentvolumeclaim.pb"
7
8
  import * as KpandaIoApiCoreV1alpha1Pod from "../../core/v1alpha1/pod.pb"
8
9
  import * as KpandaIoApiTypesObjectmeta from "../../types/objectmeta.pb"
9
10
  import * as KpandaIoApiTypesPage from "../../types/page.pb"
@@ -22,7 +23,7 @@ export type StatefulSetSpec = {
22
23
  serviceName?: string
23
24
  template?: KpandaIoApiCoreV1alpha1Pod.PodTemplateSpec
24
25
  updateStrategy?: StatefulSetUpdateStrategy
25
- volumeClaimTemplates?: VolumeClaimTemplates[]
26
+ volumeClaimTemplates?: KpandaIoApiCoreV1alpha1Persistentvolumeclaim.PersistentVolumeClaim[]
26
27
  }
27
28
 
28
29
  export type StatefulSetStatus = {
@@ -57,18 +58,6 @@ export type VolumeClaimTemplatesSpec = {
57
58
  volumeMode?: string
58
59
  }
59
60
 
60
- export type VolumeClaimTemplatesStatus = {
61
- phase?: string
62
- }
63
-
64
- export type VolumeClaimTemplates = {
65
- apiVersion?: string
66
- kind?: string
67
- metadata?: KpandaIoApiTypesObjectmeta.ObjectMeta
68
- spec?: VolumeClaimTemplatesSpec
69
- status?: VolumeClaimTemplatesStatus
70
- }
71
-
72
61
  export type RestartStatefulSetRequest = {
73
62
  cluster?: string
74
63
  namespace?: string
@@ -209,7 +209,6 @@ export type SSHInfo = BaseSSHInfo
209
209
 
210
210
  export type NTPConfig = {
211
211
  enable?: boolean
212
- manageConfig?: boolean
213
212
  servers?: string[]
214
213
  }
215
214
 
@@ -22,6 +22,11 @@ export type ClusterSetting = {
22
22
  plugins?: Plugin[]
23
23
  network?: Plugin[]
24
24
  addonSetting?: AddonSetting
25
+ clusterlcmSetting?: ClusterlcmSetting
26
+ }
27
+
28
+ export type ClusterlcmSetting = {
29
+ enableLocalService?: boolean
25
30
  }
26
31
 
27
32
  export type AddonSetting = {
@@ -0,0 +1,101 @@
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 LimitRange = {
10
+ metadata?: KpandaIoApiTypesObjectmeta.ObjectMeta
11
+ spec?: LimitRangeSpec
12
+ }
13
+
14
+ export type LimitRangeSpec = {
15
+ limits?: LimitRangeItem[]
16
+ }
17
+
18
+ export type LimitRangeItem = {
19
+ type?: string
20
+ max?: {[key: string]: string}
21
+ min?: {[key: string]: string}
22
+ default?: {[key: string]: string}
23
+ defaultRequest?: {[key: string]: string}
24
+ maxLimitRequestRatio?: {[key: string]: string}
25
+ }
26
+
27
+ export type ListClusterLimitRangesRequest = {
28
+ cluster?: string
29
+ page?: number
30
+ pageSize?: number
31
+ sortBy?: KpandaIoApiTypesPage.SortBy
32
+ sortDir?: KpandaIoApiTypesPage.SortDir
33
+ name?: string
34
+ labelSelector?: string
35
+ fieldSelector?: string
36
+ }
37
+
38
+ export type ListClusterLimitRangesResponse = {
39
+ items?: LimitRange[]
40
+ pagination?: KpandaIoApiTypesPage.Pagination
41
+ }
42
+
43
+ export type ListLimitRangesRequest = {
44
+ cluster?: string
45
+ namespace?: string
46
+ name?: string
47
+ page?: number
48
+ pageSize?: number
49
+ sortBy?: KpandaIoApiTypesPage.SortBy
50
+ sortDir?: KpandaIoApiTypesPage.SortDir
51
+ labelSelector?: string
52
+ fieldSelector?: string
53
+ }
54
+
55
+ export type ListLimitRangesResponse = {
56
+ items?: LimitRange[]
57
+ pagination?: KpandaIoApiTypesPage.Pagination
58
+ }
59
+
60
+ export type GetLimitRangeRequest = {
61
+ cluster?: string
62
+ namespace?: string
63
+ name?: string
64
+ }
65
+
66
+ export type GetLimitRangeJSONRequest = {
67
+ cluster?: string
68
+ namespace?: string
69
+ name?: string
70
+ }
71
+
72
+ export type GetLimitRangeJSONResponse = {
73
+ data?: string
74
+ }
75
+
76
+ export type CreateLimitRangeRequest = {
77
+ cluster?: string
78
+ namespace?: string
79
+ data?: string
80
+ }
81
+
82
+ export type CreateLimitRangeResponse = {
83
+ data?: string
84
+ }
85
+
86
+ export type UpdateLimitRangeRequest = {
87
+ cluster?: string
88
+ namespace?: string
89
+ name?: string
90
+ data?: string
91
+ }
92
+
93
+ export type UpdateLimitRangeResponse = {
94
+ data?: string
95
+ }
96
+
97
+ export type DeleteLimitRangeRequest = {
98
+ cluster?: string
99
+ namespace?: string
100
+ name?: string
101
+ }
@@ -77,12 +77,13 @@ export type ListPersistentVolumeClaimsRequest = {
77
77
  namespace?: string
78
78
  page?: number
79
79
  pageSize?: number
80
- name?: string[]
81
- phases?: string[]
80
+ name?: string
81
+ phase?: string
82
82
  sortBy?: KpandaIoApiTypesPage.SortBy
83
83
  sortDir?: KpandaIoApiTypesPage.SortDir
84
84
  labelSelector?: string
85
85
  fieldSelector?: string
86
+ accessMode?: AccessMode
86
87
  }
87
88
 
88
89
  export type ListPersistentVolumeClaimsResponse = {
@@ -42,6 +42,7 @@ export enum ListPodsRequestKind {
42
42
  Job = "Job",
43
43
  CronJob = "CronJob",
44
44
  ReplicaSet = "ReplicaSet",
45
+ NetworkPolicy = "NetworkPolicy",
45
46
  }
46
47
 
47
48
  export type PodTemplateSpec = {
@@ -33,12 +33,13 @@ export type ListStorageClassesRequest = {
33
33
  cluster?: string
34
34
  page?: number
35
35
  pageSize?: number
36
- name?: string[]
37
- phases?: string[]
36
+ name?: string
38
37
  sortBy?: KpandaIoApiTypesPage.SortBy
39
38
  sortDir?: KpandaIoApiTypesPage.SortDir
40
39
  labelSelector?: string
41
40
  fieldSelector?: string
41
+ provisioner?: string
42
+ reclaimPolicy?: string
42
43
  }
43
44
 
44
45
  export type ListStorageClassesResponse = {
@@ -26,6 +26,7 @@ import * as KpandaIoApiClustersV1alpha1Cluster from "../clusters/v1alpha1/cluste
26
26
  import * as KpandaIoApiClustersettingV1alpha1Clustersetting from "../clustersetting/v1alpha1/clustersetting.pb"
27
27
  import * as KpandaIoApiCoreV1alpha1Configmap from "../core/v1alpha1/configmap.pb"
28
28
  import * as KpandaIoApiCoreV1alpha1Event from "../core/v1alpha1/event.pb"
29
+ import * as KpandaIoApiCoreV1alpha1Limitrange from "../core/v1alpha1/limitrange.pb"
29
30
  import * as KpandaIoApiCoreV1alpha1Namespace from "../core/v1alpha1/namespace.pb"
30
31
  import * as KpandaIoApiCoreV1alpha1Node from "../core/v1alpha1/node.pb"
31
32
  import * as KpandaIoApiCoreV1alpha1PersistentVolume from "../core/v1alpha1/persistentVolume.pb"
@@ -386,6 +387,27 @@ export class Core {
386
387
  static UpdateResourceQuota(req: KpandaIoApiCoreV1alpha1Resourcequota.UpdateResourceQuotaRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Resourcequota.UpdateResourceQuotaResponse> {
387
388
  return fm.fetchReq<KpandaIoApiCoreV1alpha1Resourcequota.UpdateResourceQuotaRequest, KpandaIoApiCoreV1alpha1Resourcequota.UpdateResourceQuotaResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/resourcequotas/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
388
389
  }
390
+ static ListClusterLimitRanges(req: KpandaIoApiCoreV1alpha1Limitrange.ListClusterLimitRangesRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Limitrange.ListClusterLimitRangesResponse> {
391
+ return fm.fetchReq<KpandaIoApiCoreV1alpha1Limitrange.ListClusterLimitRangesRequest, KpandaIoApiCoreV1alpha1Limitrange.ListClusterLimitRangesResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/limitranges?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
392
+ }
393
+ static ListLimitRanges(req: KpandaIoApiCoreV1alpha1Limitrange.ListLimitRangesRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Limitrange.ListLimitRangesResponse> {
394
+ return fm.fetchReq<KpandaIoApiCoreV1alpha1Limitrange.ListLimitRangesRequest, KpandaIoApiCoreV1alpha1Limitrange.ListLimitRangesResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/limitranges?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
395
+ }
396
+ static GetLimitRange(req: KpandaIoApiCoreV1alpha1Limitrange.GetLimitRangeRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Limitrange.LimitRange> {
397
+ return fm.fetchReq<KpandaIoApiCoreV1alpha1Limitrange.GetLimitRangeRequest, KpandaIoApiCoreV1alpha1Limitrange.LimitRange>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/limitranges/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
398
+ }
399
+ static GetLimitRangeJSON(req: KpandaIoApiCoreV1alpha1Limitrange.GetLimitRangeJSONRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Limitrange.GetLimitRangeJSONResponse> {
400
+ return fm.fetchReq<KpandaIoApiCoreV1alpha1Limitrange.GetLimitRangeJSONRequest, KpandaIoApiCoreV1alpha1Limitrange.GetLimitRangeJSONResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/limitranges/${req["name"]}/json?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
401
+ }
402
+ static CreateLimitRange(req: KpandaIoApiCoreV1alpha1Limitrange.CreateLimitRangeRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Limitrange.CreateLimitRangeResponse> {
403
+ return fm.fetchReq<KpandaIoApiCoreV1alpha1Limitrange.CreateLimitRangeRequest, KpandaIoApiCoreV1alpha1Limitrange.CreateLimitRangeResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/limitranges`, {...initReq, method: "POST", body: JSON.stringify(req)})
404
+ }
405
+ static UpdateLimitRange(req: KpandaIoApiCoreV1alpha1Limitrange.UpdateLimitRangeRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Limitrange.UpdateLimitRangeResponse> {
406
+ return fm.fetchReq<KpandaIoApiCoreV1alpha1Limitrange.UpdateLimitRangeRequest, KpandaIoApiCoreV1alpha1Limitrange.UpdateLimitRangeResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/limitranges/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
407
+ }
408
+ static DeleteLimitRange(req: KpandaIoApiCoreV1alpha1Limitrange.DeleteLimitRangeRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
409
+ return fm.fetchReq<KpandaIoApiCoreV1alpha1Limitrange.DeleteLimitRangeRequest, GoogleProtobufEmpty.Empty>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/limitranges/${req["name"]}`, {...initReq, method: "DELETE"})
410
+ }
389
411
  static ListPersistentVolumeClaims(req: KpandaIoApiCoreV1alpha1Persistentvolumeclaim.ListPersistentVolumeClaimsRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Persistentvolumeclaim.ListPersistentVolumeClaimsResponse> {
390
412
  return fm.fetchReq<KpandaIoApiCoreV1alpha1Persistentvolumeclaim.ListPersistentVolumeClaimsRequest, KpandaIoApiCoreV1alpha1Persistentvolumeclaim.ListPersistentVolumeClaimsResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/persistentvolumeclaims?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
391
413
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kpanda",
3
- "version":"0.9.9-6",
3
+ "version":"0.10.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {