Add ephemeral local storage resource name first

This commit is contained in:
NickrenREN
2017-08-22 10:14:32 +08:00
parent e633a1604f
commit 82ce7eccba
4 changed files with 28 additions and 2 deletions

View File

@@ -60,3 +60,10 @@ func (self *ResourceList) StorageOverlay() *resource.Quantity {
}
return &resource.Quantity{}
}
func (self *ResourceList) StorageEphemeral() *resource.Quantity {
if val, ok := (*self)[ResourceEphemeralStorage]; ok {
return &val
}
return &resource.Quantity{}
}