Skip to content

Commit 813b7a3

Browse files
committed
chore: align REF_CONFIGURATION between API and workers
- Set REF_CONFIGURATION=/ref for both API and worker defaults - Add REF_SOFTWARE_ROOT=/ref/software to worker defaults - Remove REF_DATABASE_URL from API defaults (read from ref.toml) - Deployments can use volume subPath mounts to select different config directories without overriding REF_CONFIGURATION
1 parent 9d77784 commit 813b7a3

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

helm/local-test-values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ api:
5959
ENVIRONMENT: local
6060
SECRET_KEY: local-test-secret
6161
REF_DATABASE_URL: sqlite:////tmp/ref.db
62-
REF_CONFIGURATION: /app/.ref
62+
REF_CONFIGURATION: /ref
6363
volumes:
6464
- name: tmp
6565
emptyDir: {}

helm/values.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ api:
1515
ENVIRONMENT: production
1616
LOG_LEVEL: INFO
1717
SECRET_KEY: changethis # Must override in production
18-
REF_DATABASE_URL: "" # Required: e.g. postgresql://user:pass@host:5432/db or sqlite:////path/to/db
19-
REF_CONFIGURATION: /app/.ref
18+
REF_CONFIGURATION: /ref
2019

2120
ingress:
2221
enabled: false
@@ -148,6 +147,8 @@ defaults:
148147
CELERY_ACCEPT_CONTENT: |
149148
["json", "pickle"]
150149
REF_EXECUTOR: climate_ref_celery.executor.CeleryExecutor
150+
REF_CONFIGURATION: /ref
151+
REF_SOFTWARE_ROOT: /ref/software
151152
# Set HOME to writable location to fix intake-esgf and ilamb3 config directory creation
152153
HOME: /tmp
153154
# Celery reliability tuning (uncomment to override base.py defaults)

0 commit comments

Comments
 (0)