Skip to content

Commit

Permalink
set TIDEPOOL_LOGGER_PACKAGE env var via helm chart
Browse files Browse the repository at this point in the history
Setting this value would allow services to use alternate logging packages, for
example when running/testing locally, it's sometimes useful to log in a format
other than JSON.

See tidepool-org/platform#714 for one such example
logger.

One can choose to configure this like so:

    # local/Tiltconfig.yaml
    global:
      loggerPackage: devlog

And that value would get picked up and passed as TIDEPOOL_LOGGER_PACKAGE to
services started via the helm chart.

It can also be overridden on a short-term basis via:

    $ kubectl set env <deployment> TIDEPOOL_LOGGER_PACKAGE=devlog

Followed by restarting the deployment.
  • Loading branch information
ewollesen committed Apr 29, 2024
1 parent 0fa608c commit 585c18b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/tidepool/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ Create environment variables used by all platform services.
value: local
- name: TIDEPOOL_LOGGER_LEVEL
value: {{ .Values.global.logLevel }}
- name: TIDEPOOL_LOGGER_PACKAGE
value: {{ .Values.global.loggerPackage | default "json" }}
- name: TIDEPOOL_SERVER_TLS
value: "false"
- name: TIDEPOOL_AUTH_SERVICE_SECRET
Expand Down

0 comments on commit 585c18b

Please sign in to comment.