From bb860f2edb82aa240fca7da1d5f5e7341b231143 Mon Sep 17 00:00:00 2001 From: Tianhao-Gu Date: Tue, 15 Oct 2024 14:09:06 -0500 Subject: [PATCH] set usage_mode --- src/jupyterhub_config/custom_docker_spawner.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/jupyterhub_config/custom_docker_spawner.py b/src/jupyterhub_config/custom_docker_spawner.py index ef57dc1..2031b3e 100644 --- a/src/jupyterhub_config/custom_docker_spawner.py +++ b/src/jupyterhub_config/custom_docker_spawner.py @@ -115,6 +115,8 @@ def _configure_environment(self, user_dir: Path, user_env_dir: Path, username: s self.log.info(f'MinIO read/write user detected: {self.user.name}. Setting up minio_rw credentials.') self.environment['MINIO_ACCESS_KEY'] = self.environment['MINIO_RW_ACCESS_KEY'] self.environment['MINIO_SECRET_KEY'] = self.environment['MINIO_RW_SECRET_KEY'] + # USAGE_MODE is used by the setup.sh script to determine the appropriate configuration for the user. + self.environment['USAGE_MODE'] = 'dev' else: self.log.info(f'Non-admin user detected: {self.user.name}. Removing admin credentials.') self.environment.pop('MINIO_RW_ACCESS_KEY', None)