Refactor environment variables in deployment template

The environment variables for the Paperless-NGX deployment have been
refactored and moved into the main container section within the
Kubernetes deployment manifest. This change organizes the
environment variable definitions, enhancing readability and
maintainability.

Key modifications include:
- Moved the `env` section under `containers.main`, allowing for
  a clearer structure.
- Retained the logic for PostgreSQL, MariaDB, and Redis database
  configuration while ensuring environment variables are set
  within the context of the main application container.

This change does not introduce any breaking functionality, but
it does improve the clarity and intent of the configuration.
This commit is contained in:
2025-11-23 13:01:43 +01:00
parent 5bac34870f
commit d3a54f13b0
2 changed files with 52 additions and 48 deletions

View File

@@ -1,6 +1,11 @@
{{/* Append the hardcoded settings */}}
{{- define "healthchecks.harcodedValues" -}}
env:
controllers:
main:
type: deployment
containers:
main:
env:
PAPERLESS_TIME_ZONE: {{ .Values.env.TZ }}
PAPERLESS_PORT: {{ quote .Values.service.main.ports.http.port }}

View File

@@ -20,8 +20,7 @@ controllers:
# @default -- See [values.yaml](./values.yaml)
# -- Set the resource requests / limits for the container.
resources: {}
env:
env:
# -- Set the container timezone
TZ: UTC
# PAPERLESS_SECRET_KEY: ""