Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
fix #247 allow setting eph disk request
Browse files Browse the repository at this point in the history
  • Loading branch information
samos123 committed Oct 8, 2023
1 parent 1dcdd5c commit 191cbf1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions internal/resources/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ func Apply(podMetadata *metav1.ObjectMeta, podSpec *corev1.PodSpec, containerNam

resources.Requests[corev1.ResourceCPU] = *resource.NewQuantity(res.CPU, resource.DecimalSI)
resources.Requests[corev1.ResourceMemory] = *resource.NewQuantity(res.Memory*gigabyte, resource.BinarySI)
resources.Requests[corev1.ResourceEphemeralStorage] = *resource.NewQuantity(res.Disk*gigabyte, resource.BinarySI)

if res.GPU != nil {
gpuInfo, ok := GetGPUInfo(cloudName, res.GPU.Type)
Expand Down
2 changes: 1 addition & 1 deletion internal/sci/sci.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 191cbf1

Please sign in to comment.