forked from cerc-io/stack-orchestrator
Add resource limit options to spec.
This commit is contained in:
1 parent
d2ebb81d77
commit
8964e1c0fe
2 files changed
+30
-4
No files matched your search
@@ -47,6 +47,12 @@ class Spec:
|
||||
if self.obj and "configmaps" in self.obj
|
||||
else {})
|
||||
|
||||
def get_container_resources(self):
|
||||
return self.obj.get("resources", {}).get("containers")
|
||||
|
||||
def get_volume_resources(self):
|
||||
return self.obj.get("resources", {}).get("volumes")
|
||||
|
||||
def get_http_proxy(self):
|
||||
return (self.obj[constants.network_key][constants.http_proxy_key]
|
||||
if self.obj and constants.network_key in self.obj
|
||||
|
||||
Reference in new issue
Block a user