From 90de282ede2e4c8417324b367bcd71974d0281c8 Mon Sep 17 00:00:00 2001 From: Olivier Levitt Date: Wed, 31 Jan 2024 11:42:40 +0100 Subject: [PATCH] Disable refresh and add some warning to documentation --- README.md | 8 ++++---- onyxia-api/src/main/resources/application.properties | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5e2e111f..f1fdd1fe 100644 --- a/README.md +++ b/README.md @@ -74,10 +74,10 @@ Configurable properties : ### Catalogs configuration : -| Key | Default | Description | -| --------------------- | ---------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `catalogs` | see [onyxia-api/src/main/resources/catalogs.json](onyxia-api/src/main/resources/catalogs.json) | List of helm catalogs. | -| `catalogs.refresh.ms` | `300000` (5 minutes) | The rate at which the catalogs should be refreshed. `<= 0` means no refreshs after initial loading | +| Key | Default | Description | +| --------------------- |------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| `catalogs` | see [onyxia-api/src/main/resources/catalogs.json](onyxia-api/src/main/resources/catalogs.json) | List of helm catalogs. | +| `catalogs.refresh.ms` | `0` (disabled) | The rate (in milliseconds) at which the catalogs should be refreshed. `<= 0` means no refreshs after initial loading. Note that this refresh comes with some caveats, especially if you have multiple API pods. See https://github.com/InseeFrLab/onyxia-api/issues/360 for more details. | ### HTTP configuration | Key | Default | Description | diff --git a/onyxia-api/src/main/resources/application.properties b/onyxia-api/src/main/resources/application.properties index 8bae2525..714566e0 100644 --- a/onyxia-api/src/main/resources/application.properties +++ b/onyxia-api/src/main/resources/application.properties @@ -8,7 +8,7 @@ oidc.audience= oidc.username-claim=preferred_username oidc.groups-claim=groups # Catalogs -catalogs.refresh.ms=300000 +catalogs.refresh.ms=0 # Security security.cors.allowed_origins= # Proxy configuration