From 88489378872f1da938f974de386cbe24e6be87fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Lajus?= <74196307+Superfluxx@users.noreply.github.com> Date: Wed, 9 Sep 2026 16:51:21 +0200 Subject: [PATCH 1/3] 25 make percentage of usage before displaying a terminal notification var (#27) * Add percentage of usage before displaying a terminal notification in values * Add extra configuration to improve storage usage --- ...espawner_singleuser_pod_manifest_configuration.py | 12 ++++++++++++ charts/helix/tests/values.yaml | 10 ++++++++++ charts/helix/values.yaml | 11 +++++++++++ 3 files changed, 33 insertions(+) diff --git a/charts/helix/configuration/jupyterhub/07-kubespawner_singleuser_pod_manifest_configuration.py b/charts/helix/configuration/jupyterhub/07-kubespawner_singleuser_pod_manifest_configuration.py index b6b985b..c465a4f 100644 --- a/charts/helix/configuration/jupyterhub/07-kubespawner_singleuser_pod_manifest_configuration.py +++ b/charts/helix/configuration/jupyterhub/07-kubespawner_singleuser_pod_manifest_configuration.py @@ -158,6 +158,17 @@ def set_mounted_pvc_names_as_env_vars(spawner, pod): set_pvc_env_vars(notebook_container, pvc_volumes) set_mount_path_env_vars(notebook_container, mounted_volumes_with_paths) +def set_customs_env_vars(spawner, pod): + notebook_container = get_notebook_container(pod.spec.containers) + try : + for name, value in notebook_container.extra_env.items(): + if name == "PYDEVD_DISABLE_FILE_VALIDATION": + continue + + add_env_vars(notebook_container, name, value) + except Exception as e: + spawner.log.error("ERROR\nImpossible to add some var env: %s", e) + def modify_pod_hook(spawner, pod): """Modifie le manifeste du pod singleuser pour inclure dans le conteneur notebook le nom des PVCs monté en variable d'envirronement.""" @@ -167,6 +178,7 @@ def modify_pod_hook(spawner, pod): spawner.log.info( f"Injecting PVC names bounded to user {spawner.user.name} as environment variables") set_mounted_pvc_names_as_env_vars(spawner, pod) + set_customs_env_vars(spawner, pod) except Exception as e: diff --git a/charts/helix/tests/values.yaml b/charts/helix/tests/values.yaml index 5dcc706..f16e1c1 100644 --- a/charts/helix/tests/values.yaml +++ b/charts/helix/tests/values.yaml @@ -294,6 +294,16 @@ jupyterhub: extraEnv: PYDEVD_DISABLE_FILE_VALIDATION: "1" + DISK_THRESHOLD : "3" + + extraFiles: + collaboration-config: + mountPath: /etc/jupyter/jupyter_server_config.json + data: + SQLiteYStore: + squash_after_inactivity_of: 3600 + YDocExtension: + document_load_progressively: true # This section configures KubeSpawner directly to some extent but also indirectly through # Helm chart specific configuration options such as singleuser.storage.type. diff --git a/charts/helix/values.yaml b/charts/helix/values.yaml index a90d2c7..d728b48 100644 --- a/charts/helix/values.yaml +++ b/charts/helix/values.yaml @@ -321,6 +321,17 @@ jupyterhub: extraEnv: PYDEVD_DISABLE_FILE_VALIDATION: "1" + DISK_THRESHOLD: "70" # Percentage of usage before displaying a terminal notification + + # Add extra configuration in your Jupyterlab + extraFiles: + collaboration-config: + mountPath: /etc/jupyter/jupyter_server_config.json + data: + SQLiteYStore: + squash_after_inactivity_of: 3600 + YDocExtension: + document_load_progressively: true # This section configures KubeSpawner directly to some extent but also indirectly through # Helm chart specific configuration options such as singleuser.storage.type. From 8eb805b482da7acbf20c4ca315fa5a49b398a702 Mon Sep 17 00:00:00 2001 From: Lajus Date: Thu, 10 Sep 2026 14:37:06 +0200 Subject: [PATCH 2/3] Update change log --- CHANGELOG.md | 4 ++++ charts/helix/Chart.yaml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3607eb6..264d298 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## [1.4.3] - 20260610 +### Changed +- Update default values.yaml to improve performance when openning big files and reduce .jupyter_ystore.db size. + ## [1.4.2] - 20260504 ### Changed - Update version of Jupyter Hub dependency to 4.3.4 diff --git a/charts/helix/Chart.yaml b/charts/helix/Chart.yaml index ad00e78..7cc3bdd 100644 --- a/charts/helix/Chart.yaml +++ b/charts/helix/Chart.yaml @@ -20,7 +20,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: "1.4.2" +version: "1.4.3" # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to From 7771c474557fac0361a2548265cb59b1281981f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Lajus?= <74196307+Superfluxx@users.noreply.github.com> Date: Thu, 10 Sep 2026 15:14:17 +0200 Subject: [PATCH 3/3] 25 make percentage of usage before displaying a terminal notification var (#29) * Add percentage of usage before displaying a terminal notification in values * Add extra configuration to improve storage usage * Update change log * Fix date --------- Co-authored-by: Nicolas-Delahaye --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 264d298..8ddb292 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## [1.4.3] - 20260610 +## [1.4.3] - 20260910 ### Changed - Update default values.yaml to improve performance when openning big files and reduce .jupyter_ystore.db size.