@daocloud-proto/kpanda 0.10.2 → 0.10.3
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.
|
@@ -20,6 +20,14 @@ export enum ClusterProvider {
|
|
|
20
20
|
ALIYUN_ACK = "ALIYUN_ACK",
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
export enum ClusterRole {
|
|
24
|
+
CLUSTER_ROLE_UNSPECIFIED = "CLUSTER_ROLE_UNSPECIFIED",
|
|
25
|
+
CLUSTER_ROLE_MANAGER = "CLUSTER_ROLE_MANAGER",
|
|
26
|
+
CLUSTER_ROLE_GLOBAL_SERVICE = "CLUSTER_ROLE_GLOBAL_SERVICE",
|
|
27
|
+
CLUSTER_ROLE_WORKER = "CLUSTER_ROLE_WORKER",
|
|
28
|
+
CLUSTER_ROLE_THIRD_PARTY = "CLUSTER_ROLE_THIRD_PARTY",
|
|
29
|
+
}
|
|
30
|
+
|
|
23
31
|
export enum ClusterPhase {
|
|
24
32
|
CLUSTER_PHASE_UNSPECIFIED = "CLUSTER_PHASE_UNSPECIFIED",
|
|
25
33
|
Unknown = "Unknown",
|
|
@@ -34,7 +42,7 @@ export type ListClustersRequest = {
|
|
|
34
42
|
name?: string[]
|
|
35
43
|
page?: number
|
|
36
44
|
pageSize?: number
|
|
37
|
-
role?:
|
|
45
|
+
role?: ClusterRole
|
|
38
46
|
kubernetesVersion?: string
|
|
39
47
|
phase?: ClusterPhase
|
|
40
48
|
labelSelector?: string
|
|
@@ -113,7 +121,7 @@ export type ClusterSpec = {
|
|
|
113
121
|
apiEndpoint?: string
|
|
114
122
|
region?: string
|
|
115
123
|
zone?: string
|
|
116
|
-
roles?:
|
|
124
|
+
roles?: ClusterRole[]
|
|
117
125
|
managedBy?: string
|
|
118
126
|
aliasName?: string
|
|
119
127
|
secretRef?: LocalSecretReference
|
|
File without changes
|
|
@@ -29,7 +29,7 @@ import * as KpandaIoApiCoreV1alpha1Event from "../core/v1alpha1/event.pb"
|
|
|
29
29
|
import * as KpandaIoApiCoreV1alpha1Limitrange from "../core/v1alpha1/limitrange.pb"
|
|
30
30
|
import * as KpandaIoApiCoreV1alpha1Namespace from "../core/v1alpha1/namespace.pb"
|
|
31
31
|
import * as KpandaIoApiCoreV1alpha1Node from "../core/v1alpha1/node.pb"
|
|
32
|
-
import * as
|
|
32
|
+
import * as KpandaIoApiCoreV1alpha1Persistentvolume from "../core/v1alpha1/persistentvolume.pb"
|
|
33
33
|
import * as KpandaIoApiCoreV1alpha1Persistentvolumeclaim from "../core/v1alpha1/persistentvolumeclaim.pb"
|
|
34
34
|
import * as KpandaIoApiCoreV1alpha1Pod from "../core/v1alpha1/pod.pb"
|
|
35
35
|
import * as KpandaIoApiCoreV1alpha1Resourcequota from "../core/v1alpha1/resourcequota.pb"
|
|
@@ -417,8 +417,8 @@ export class Core {
|
|
|
417
417
|
static GetPersistentVolumeClaim(req: KpandaIoApiCoreV1alpha1Persistentvolumeclaim.GetPersistentVolumeClaimRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Persistentvolumeclaim.PersistentVolumeClaim> {
|
|
418
418
|
return fm.fetchReq<KpandaIoApiCoreV1alpha1Persistentvolumeclaim.GetPersistentVolumeClaimRequest, KpandaIoApiCoreV1alpha1Persistentvolumeclaim.PersistentVolumeClaim>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/persistentvolumeclaims/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
419
419
|
}
|
|
420
|
-
static GetPersistentVolume(req:
|
|
421
|
-
return fm.fetchReq<
|
|
420
|
+
static GetPersistentVolume(req: KpandaIoApiCoreV1alpha1Persistentvolume.GetPersistentVolumeRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Persistentvolume.PersistentVolume> {
|
|
421
|
+
return fm.fetchReq<KpandaIoApiCoreV1alpha1Persistentvolume.GetPersistentVolumeRequest, KpandaIoApiCoreV1alpha1Persistentvolume.PersistentVolume>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/persistentvolumes/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "name"])}`, {...initReq, method: "GET"})
|
|
422
422
|
}
|
|
423
423
|
static DeletePersistentVolumeClaim(req: KpandaIoApiCoreV1alpha1Persistentvolumeclaim.DeletePersistentVolumeClaimRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
424
424
|
return fm.fetchReq<KpandaIoApiCoreV1alpha1Persistentvolumeclaim.DeletePersistentVolumeClaimRequest, GoogleProtobufEmpty.Empty>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/persistentvolumeclaims/${req["name"]}`, {...initReq, method: "DELETE"})
|