From d134629bfa3c8ce0d5cf8cc04c962d7c2606d146 Mon Sep 17 00:00:00 2001 From: Eric Bellm Date: Wed, 8 Jan 2025 14:39:53 -0800 Subject: [PATCH] provide database connection --- applications/tasso/README.md | 2 ++ applications/tasso/templates/configmap.yaml | 2 ++ applications/tasso/values-usdfdev.yaml | 2 ++ applications/tasso/values.yaml | 6 ++++++ 4 files changed, 12 insertions(+) diff --git a/applications/tasso/README.md b/applications/tasso/README.md index f36630249e..d8536b3779 100644 --- a/applications/tasso/README.md +++ b/applications/tasso/README.md @@ -11,6 +11,8 @@ Cutout labeling service | Key | Type | Default | Description | |-----|------|---------|-------------| | affinity | object | `{}` | Affinity rules for the tasso deployment pod | +| config.databaseSchema | string | `"tasso"` | database schema | +| config.databaseUrl | string | `""` | database connection url | | config.logLevel | string | `"INFO"` | Logging level | | config.logProfile | string | `"production"` | Logging profile (`production` for JSON, `development` for human-friendly) | | config.pathPrefix | string | `"/tasso"` | URL path prefix | diff --git a/applications/tasso/templates/configmap.yaml b/applications/tasso/templates/configmap.yaml index 0b5afcc9e5..adcf7804fd 100644 --- a/applications/tasso/templates/configmap.yaml +++ b/applications/tasso/templates/configmap.yaml @@ -8,3 +8,5 @@ data: TASSO_LOG_LEVEL: {{ .Values.config.logLevel | quote }} TASSO_PATH_PREFIX: {{ .Values.config.pathPrefix | quote }} TASSO_PROFILE: {{ .Values.config.logProfile | quote }} + TASSO_DATABASE_URL: {{ .Values.config.databaseUrl | quote }} + TASSO_DATABASE_SCHEMA: {{ .Values.config.databaseSchema | quote }} diff --git a/applications/tasso/values-usdfdev.yaml b/applications/tasso/values-usdfdev.yaml index cd853b11d4..6b64486f1e 100644 --- a/applications/tasso/values-usdfdev.yaml +++ b/applications/tasso/values-usdfdev.yaml @@ -8,3 +8,5 @@ image: config: logLevel: "DEBUG" + + databaseUrl: "postgresql://rubin@usdf-prompt-processing-dev.slac.stanford.edu/lsst-devl" diff --git a/applications/tasso/values.yaml b/applications/tasso/values.yaml index df8156e987..9d823d478a 100644 --- a/applications/tasso/values.yaml +++ b/applications/tasso/values.yaml @@ -30,6 +30,12 @@ config: # -- Whether to send Slack alerts for unexpected failures slackAlerts: false + # -- database connection url + databaseUrl: "" + + # -- database schema + databaseSchema: "tasso" + ingress: # -- Additional annotations for the ingress rule annotations: {}