Skip to content
Snippets Groups Projects
Commit b2f2260d authored by youngsuKim-CSUSB's avatar youngsuKim-CSUSB
Browse files

Test customization

parent 89c19c7f
No related branches found
No related tags found
No related merge requests found
......@@ -46,12 +46,12 @@ class MySpawner(KubeSpawner):
# gpus = int(1)
#These two lines to avoid overriding the GPU assigned to some stacks by default
# if "nvidia.com/gpu" in options["kubespawner_override"]["extra_resource_limits"] and gpus == 0:
# pass
# else
# setattr(self, "extra_resource_limits", {"nvidia.com/gpu": gpus})
if "nvidia.com/gpu" in options["kubespawner_override"]["extra_resource_limits"] and gpus == 0:
pass
else
setattr(self, "extra_resource_limits", {"nvidia.com/gpu": gpus})
setattr(self, "extra_resource_limits", {"nvidia.com/gpu": gpus})
# setattr(self, "extra_resource_limits", {"nvidia.com/gpu": gpus})
setattr(self, "mem_guarantee", formdata.get('ram', [0])[0]+"G")
setattr(self, "cpu_guarantee", float(formdata.get('cores', [0])[0]))
setattr(self, "mem_limit", formdata.get('ram', [0])[0]+"G")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment