feat(deployment): add envFrom support for ConfigMap/Secret environment variables
Add support for loading environment variables from ConfigMap or Secret
resources using envFrom field, following Kubernetes best practices for
configuration management.
Changes:
- Add jellyfin.envFrom parameter in values.yaml
- Add envFrom section in deployment.yaml template (before env)
- Provide comprehensive documentation with examples
- Bump chart version 2.5.0 -> 2.6.0 (minor - new feature)
- Add changelog annotation for Artifact Hub
Use cases:
- Load multiple environment variables from ConfigMap without defining each one
- Load secrets from external secret management systems
- Separate configuration from chart values (12-factor app pattern)
- Simplify configuration for complex deployments
Example usage:
jellyfin:
envFrom:
- configMapRef:
name: jellyfin-config
- secretRef:
name: jellyfin-secrets
Follows standard Kubernetes patterns used by most community Helm charts.
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Aleksei Sviridkin <f@lex.la>
This commit is contained in:
1 parent
2401a45bb1
commit
d20aac5794
3 files changed
+22
-1
No files matched your search
@@ -8,5 +8,9 @@ keywords:
|
||||
- jellyfin
|
||||
- media
|
||||
- self-hosted
|
||||
version: 2.5.0
|
||||
version: 2.6.0
|
||||
appVersion: 10.11.2
|
||||
annotations:
|
||||
artifacthub.io/changes: |
|
||||
- kind: added
|
||||
description: Add envFrom support to load environment variables from ConfigMap or Secret
|
||||
@@ -59,6 +59,10 @@ spec:
|
||||
args:
|
||||
{{- toYaml . | nindent 12 }}
|
||||
{{- end }}
|
||||
{{- with .Values.jellyfin.envFrom }}
|
||||
envFrom:
|
||||
{{- toYaml . | nindent 12 }}
|
||||
{{- end }}
|
||||
{{- with .Values.jellyfin.env }}
|
||||
env:
|
||||
{{- toYaml . | nindent 12 }}
|
||||
|
||||
@@ -191,7 +191,20 @@ jellyfin:
|
||||
command: []
|
||||
# -- Additional arguments for the entrypoint command.
|
||||
args: []
|
||||
# -- Load environment variables from ConfigMap or Secret.
|
||||
# See: https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/#configure-all-key-value-pairs-in-a-configmap-as-container-environment-variables
|
||||
# Example:
|
||||
# envFrom:
|
||||
# - configMapRef:
|
||||
# name: jellyfin-config
|
||||
# - secretRef:
|
||||
# name: jellyfin-secrets
|
||||
envFrom: []
|
||||
# -- Additional environment variables for the container.
|
||||
# Example:
|
||||
# env:
|
||||
# - name: JELLYFIN_CACHE_DIR
|
||||
# value: /cache
|
||||
env: []
|
||||
|
||||
persistence:
|
||||
|
||||
Reference in new issue
Block a user