Skip to content

Commit 8daf5b1

Browse files
Only support cpu and memory resource type for now and document unsupported frac cpus
1 parent f9ef5f4 commit 8daf5b1

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

api/v1/hypervisor_types.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,11 @@ type ResourceName string
3636
// typenames are constructed from a DNS-style subdomain, followed by a slash `/`
3737
// and a name.
3838
const (
39-
// CPU, in cores. (500m = .5 cores)
39+
// CPU, in cores. Note that currently, it is not supported to provide
40+
// fractional cpu resources, such as 500m for 0.5 cpu.
4041
ResourceCPU ResourceName = "cpu"
4142
// Memory, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024)
4243
ResourceMemory ResourceName = "memory"
43-
// Volume size, in bytes (e.g. 5Gi = 5GiB = 5 * 1024 * 1024 * 1024)
44-
ResourceStorage ResourceName = "storage"
45-
// Local ephemeral storage, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024)
46-
ResourceEphemeralStorage ResourceName = "ephemeral-storage"
4744
)
4845

4946
// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.

0 commit comments

Comments
 (0)