Refactor environment variable definitions in common.yaml

This commit refactors the environment variable definitions
in the `common.yaml` template for the Paperless-ngx chart.
The structure has been simplified by removing the unnecessary
nested "controllers: main: type: deployment" section, directly
defining the `env` block. This improves readability and
maintainability of the Helm template.

No functional changes were introduced, and existing behaviors
are preserved. The refactor aims to streamline the configuration
management process for better clarity when setting up
environment variables related to services like PostgreSQL,
MariaDB, and Redis.
This commit is contained in:
2025-11-23 13:12:58 +01:00
parent d3a54f13b0
commit 5f201ba918

View File

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