MCPcopy Index your code
hub / github.com/cortexlabs/cortex / ShmVolume

Function ShmVolume

pkg/workloads/helpers.go:241–251  ·  view source on GitHub ↗
(q resource.Quantity, volumeName string)

Source from the content-addressed store, hash-verified

239}
240
241func ShmVolume(q resource.Quantity, volumeName string) kcore.Volume {
242 return kcore.Volume{
243 Name: volumeName,
244 VolumeSource: kcore.VolumeSource{
245 EmptyDir: &kcore.EmptyDirVolumeSource{
246 Medium: kcore.StorageMediumMemory,
247 SizeLimit: k8s.QuantityPtr(q),
248 },
249 },
250 }
251}
252
253func KubexitVolume() kcore.Volume {
254 return k8s.EmptyDirVolume(_kubexitGraveyardName)

Callers 1

userPodContainersFunction · 0.85

Calls 1

QuantityPtrFunction · 0.92

Tested by

no test coverage detected