Skip to content

Commit

Permalink
Simplify default images (#1114)
Browse files Browse the repository at this point in the history
* fix bug in state_01_terraform_state function call

* Make function call fit deployment paradigm

* remove default images in qhub-config.yaml

* correct schema for image to be str instead of bool
  • Loading branch information
tylerpotts authored Feb 24, 2022
1 parent d6d895d commit 4360056
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions qhub/initialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@
"cpu_guarantee": 0.75,
"mem_limit": "4G",
"mem_guarantee": "2.5G",
"image": f"quansight/qhub-jupyterlab:{qhub_image_tag}",
},
},
{
Expand All @@ -181,7 +180,6 @@
"cpu_guarantee": 1.5,
"mem_limit": "8G",
"mem_guarantee": "5G",
"image": f"quansight/qhub-jupyterlab:{qhub_image_tag}",
},
},
],
Expand All @@ -192,15 +190,13 @@
"worker_memory_limit": "4G",
"worker_memory": "2.5G",
"worker_threads": 1,
"image": f"quansight/qhub-dask-worker:{qhub_image_tag}",
},
"Medium Worker": {
"worker_cores_limit": 2,
"worker_cores": 1.5,
"worker_memory_limit": "8G",
"worker_memory": "5G",
"worker_threads": 2,
"image": f"quansight/qhub-dask-worker:{qhub_image_tag}",
},
},
}
Expand Down
4 changes: 2 additions & 2 deletions qhub/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ class KubeSpawner(Base):
cpu_guarantee: int
mem_limit: str
mem_guarantee: str
image: str
image: typing.Optional[str]

class Config:
extra = "allow"
Expand All @@ -304,7 +304,7 @@ class DaskWorkerProfile(Base):
worker_cores: int
worker_memory_limit: str
worker_memory: str
image: str
image: typing.Optional[str]

class Config:
extra = "allow"
Expand Down

0 comments on commit 4360056

Please sign in to comment.