@daocloud-proto/virtnest 0.6.0 → 0.7.0-dev2
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/package.json +1 -1
- package/v1alpha1/cluster.pb.ts +17 -0
- package/v1alpha1/image.pb.ts +0 -7
- package/v1alpha1/vm.pb.ts +21 -1
- package/v1alpha1/vmtemplate.pb.ts +32 -0
package/package.json
CHANGED
package/v1alpha1/cluster.pb.ts
CHANGED
|
@@ -11,12 +11,29 @@ export enum Status {
|
|
|
11
11
|
failed = "failed",
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
export enum GPUType {
|
|
15
|
+
Nvidia_GPU = "Nvidia_GPU",
|
|
16
|
+
Nvidia_vGPU = "Nvidia_vGPU",
|
|
17
|
+
}
|
|
18
|
+
|
|
14
19
|
export type ClusterInfo = {
|
|
15
20
|
name?: string
|
|
16
21
|
status?: Status
|
|
17
22
|
isKubevirtInstalled?: boolean
|
|
18
23
|
isInsightAgentReady?: boolean
|
|
19
24
|
spiderpool?: SpiderPool
|
|
25
|
+
gpuInfo?: GPUInfo
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export type GPUInfo = {
|
|
29
|
+
type?: GPUType[]
|
|
30
|
+
gpus?: GPU[]
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export type GPU = {
|
|
34
|
+
type?: GPUType
|
|
35
|
+
deviceName?: string
|
|
36
|
+
count?: number
|
|
20
37
|
}
|
|
21
38
|
|
|
22
39
|
export type SpiderPool = {
|
package/v1alpha1/image.pb.ts
CHANGED
|
@@ -83,10 +83,6 @@ export type ListArtifactsRequest = {
|
|
|
83
83
|
public?: boolean
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
export type ListArtifactsResponse = {
|
|
87
|
-
items?: Artifact[]
|
|
88
|
-
}
|
|
89
|
-
|
|
90
86
|
export type Artifact = {
|
|
91
87
|
digest?: string
|
|
92
88
|
tags?: Tag[]
|
|
@@ -144,9 +140,6 @@ export class Image {
|
|
|
144
140
|
static ListRepositories(req: ListRepositoriesRequest, initReq?: fm.InitReq): Promise<ListRepositoriesResponse> {
|
|
145
141
|
return fm.fetchReq<ListRepositoriesRequest, ListRepositoriesResponse>(`/apis/virtnest.io/v1alpha1/repositories?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
146
142
|
}
|
|
147
|
-
static ListArtifacts(req: ListArtifactsRequest, initReq?: fm.InitReq): Promise<ListArtifactsResponse> {
|
|
148
|
-
return fm.fetchReq<ListArtifactsRequest, ListArtifactsResponse>(`/apis/virtnest.io/v1alpha1/artifacts?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
149
|
-
}
|
|
150
143
|
static ListSecrets(req: ListSecretsRequest, initReq?: fm.InitReq): Promise<ListSecretsResponse> {
|
|
151
144
|
return fm.fetchReq<ListSecretsRequest, ListSecretsResponse>(`/apis/virtnest.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/secrets?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
152
145
|
}
|
package/v1alpha1/vm.pb.ts
CHANGED
|
@@ -35,6 +35,11 @@ export enum ImageSource {
|
|
|
35
35
|
s3 = "s3",
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
export enum GPUType {
|
|
39
|
+
Nvidia_GPU = "Nvidia_GPU",
|
|
40
|
+
Nvidia_vGPU = "Nvidia_vGPU",
|
|
41
|
+
}
|
|
42
|
+
|
|
38
43
|
export enum DiskOperation {
|
|
39
44
|
add = "add",
|
|
40
45
|
delete = "delete",
|
|
@@ -80,6 +85,12 @@ export enum PersistentVolumeAccessMode {
|
|
|
80
85
|
ReadWriteOncePod = "ReadWriteOncePod",
|
|
81
86
|
}
|
|
82
87
|
|
|
88
|
+
export enum EventLevel {
|
|
89
|
+
UNSPECIFIED = "UNSPECIFIED",
|
|
90
|
+
Normal = "Normal",
|
|
91
|
+
Warning = "Warning",
|
|
92
|
+
}
|
|
93
|
+
|
|
83
94
|
export type Pagination = {
|
|
84
95
|
page?: number
|
|
85
96
|
pageSize?: number
|
|
@@ -149,6 +160,14 @@ export type CreateVMRequest = {
|
|
|
149
160
|
osVersion?: string
|
|
150
161
|
secret?: string
|
|
151
162
|
network?: MultusNetwork
|
|
163
|
+
createPowerOn?: boolean
|
|
164
|
+
gpus?: GPU[]
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export type GPU = {
|
|
168
|
+
type?: GPUType
|
|
169
|
+
deviceName?: string
|
|
170
|
+
count?: number
|
|
152
171
|
}
|
|
153
172
|
|
|
154
173
|
export type SSH = {
|
|
@@ -231,6 +250,7 @@ export type GetVMResponse = {
|
|
|
231
250
|
allowedOperation?: AllowedOperation[]
|
|
232
251
|
secret?: string
|
|
233
252
|
network?: MultusNetworkInfo
|
|
253
|
+
gpus?: GPU[]
|
|
234
254
|
}
|
|
235
255
|
|
|
236
256
|
export type MultusNetworkInfoItem = {
|
|
@@ -568,7 +588,7 @@ export type ListVMEventsResponse = {
|
|
|
568
588
|
}
|
|
569
589
|
|
|
570
590
|
export type VmEvents = {
|
|
571
|
-
level?:
|
|
591
|
+
level?: EventLevel
|
|
572
592
|
component?: string
|
|
573
593
|
object?: Object
|
|
574
594
|
name?: string
|
|
@@ -11,6 +11,18 @@ export enum TemplateType {
|
|
|
11
11
|
internal = "internal",
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
export enum PersistentVolumeAccessMode {
|
|
15
|
+
ReadWriteOnce = "ReadWriteOnce",
|
|
16
|
+
ReadOnlyMany = "ReadOnlyMany",
|
|
17
|
+
ReadWriteMany = "ReadWriteMany",
|
|
18
|
+
ReadWriteOncePod = "ReadWriteOncePod",
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export enum GPUType {
|
|
22
|
+
Nvidia_GPU = "Nvidia_GPU",
|
|
23
|
+
Nvidia_vGPU = "Nvidia_vGPU",
|
|
24
|
+
}
|
|
25
|
+
|
|
14
26
|
export enum ImageSource {
|
|
15
27
|
docker = "docker",
|
|
16
28
|
http = "http",
|
|
@@ -75,6 +87,26 @@ export type GetVMTemplateResponse = {
|
|
|
75
87
|
imageSource?: ImageSource
|
|
76
88
|
osVersion?: string
|
|
77
89
|
network?: string
|
|
90
|
+
disks?: VMDisks
|
|
91
|
+
gpus?: GPU[]
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export type VMDisks = {
|
|
95
|
+
systemVolume?: DiskVolume
|
|
96
|
+
dataVolumes?: DiskVolume[]
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export type DiskVolume = {
|
|
100
|
+
storageClass?: string
|
|
101
|
+
capacity?: string
|
|
102
|
+
pvAccessMode?: PersistentVolumeAccessMode
|
|
103
|
+
name?: string
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export type GPU = {
|
|
107
|
+
type?: GPUType
|
|
108
|
+
deviceName?: string
|
|
109
|
+
count?: number
|
|
78
110
|
}
|
|
79
111
|
|
|
80
112
|
export type CreateVMTemplateByVMRequest = {
|