@daocloud-proto/virtnest 0.7.0-dev1 → 0.7.0-rc1
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/vm.pb.ts +14 -0
- 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/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",
|
|
@@ -155,6 +160,14 @@ export type CreateVMRequest = {
|
|
|
155
160
|
osVersion?: string
|
|
156
161
|
secret?: string
|
|
157
162
|
network?: MultusNetwork
|
|
163
|
+
createPowerOn?: boolean
|
|
164
|
+
gpus?: GPU[]
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export type GPU = {
|
|
168
|
+
type?: GPUType
|
|
169
|
+
deviceName?: string
|
|
170
|
+
count?: number
|
|
158
171
|
}
|
|
159
172
|
|
|
160
173
|
export type SSH = {
|
|
@@ -237,6 +250,7 @@ export type GetVMResponse = {
|
|
|
237
250
|
allowedOperation?: AllowedOperation[]
|
|
238
251
|
secret?: string
|
|
239
252
|
network?: MultusNetworkInfo
|
|
253
|
+
gpus?: GPU[]
|
|
240
254
|
}
|
|
241
255
|
|
|
242
256
|
export type MultusNetworkInfoItem = {
|
|
@@ -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 = {
|