File tree Expand file tree Collapse file tree
applications/jupyterhub/src/harness_jupyter/harness_jupyter Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -224,10 +224,10 @@ def change_pod_manifest(self: KubeSpawner):
224224
225225 # set user quota cpu/mem usage if value has a "value" else don't change the value
226226 logging .info ("Setting user quota cpu/mem usage" )
227- set_key_value (self , key = "cpu_guarantee" , value = user_quotas .get (
228- "quota-ws-guaranteecpu" ))
227+ set_key_value (self , key = "cpu_guarantee" , value = float ( user_quotas .get (
228+ "quota-ws-guaranteecpu" )))
229229 set_key_value (self , key = "cpu_limit" ,
230- value = user_quotas .get ("quota-ws-maxcpu" ))
230+ value = float ( user_quotas .get ("quota-ws-maxcpu" ) ))
231231 set_key_value (self , key = "mem_guarantee" , value = user_quotas .get (
232232 "quota-ws-guaranteemem" ), unit = "G" )
233233 set_key_value (self , key = "mem_limit" , value = user_quotas .get (
You can’t perform that action at this time.
0 commit comments