Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade conda-store to 2023.10.1 #2092

Merged
merged 2 commits into from
Nov 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/_nebari/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
DEFAULT_NEBARI_IMAGE_TAG = CURRENT_RELEASE
DEFAULT_NEBARI_WORKFLOW_CONTROLLER_IMAGE_TAG = "2023.7.2"

DEFAULT_CONDA_STORE_IMAGE_TAG = "v0.4.14"
DEFAULT_CONDA_STORE_IMAGE_TAG = "2023.10.1"

LATEST_SUPPORTED_PYTHON_VERSION = "3.10"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,13 @@ async def authenticate(self, request):
namespaces.add(group_name)
role_bindings[f"{group_name}/*"] = roles

conda_store = get_conda_store(request)
for namespace in namespaces:
_namespace = api.get_namespace(conda_store.db, name=namespace)
if _namespace is None:
conda_store.db.add(orm.Namespace(name=namespace))
conda_store.db.commit()
conda_store = await get_conda_store(request)
with conda_store.session_factory() as db:
for namespace in namespaces:
_namespace = api.get_namespace(db, name=namespace)
if _namespace is None:
db.add(orm.Namespace(name=namespace))
db.commit()

return schema.AuthenticationToken(
primary_namespace=username,
Expand Down
Loading