fix(helm): omit empty env and envFrom in hub deployment

Wrap env and envFrom in with blocks so they aren't rendered as null keys
when unset, document both values with examples, and bump chart to 0.1.9.
This commit is contained in:
henrygd
2026-10-17 09:43:46 -04:00
parent b2cbd05c4c
commit d8325acfae
3 changed files with 14 additions and 4 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ home: https://github.com/henrygd/beszel/tree/main/supplemental/helm/beszel-hub
name: beszel-hub
appVersion: "0.21.0"
# Bump this version when publishing chart changes.
version: 0.1.8
version: 0.1.9
sources:
- https://github.com/henrygd/beszel/tree/main/supplemental/helm/beszel-hub
- https://www.beszel.dev/
@@ -50,15 +50,17 @@ spec:
- name: http
containerPort: {{ .Values.service.port }}
protocol: TCP
{{- with .Values.envFrom }}
envFrom:
{{- with .Values.envFrom }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- end }}
{{- with .Values.env }}
env:
{{- range $key, $value := .Values.env }}
{{- range $key, $value := . }}
- name: {{ $key }}
value: {{ $value | quote }}
{{- end }}
{{- end }}
{{- with .Values.livenessProbe }}
livenessProbe:
{{- toYaml . | nindent 12 }}
+8
View File
@@ -116,9 +116,17 @@ autoscaling:
# volumeMounts: {}
# -- Environment variables for the hub container
env: {}
# APP_URL: https://beszel.example.com
# DISABLE_PASSWORD_AUTH: "true"
# -- Load environment variables from Secrets or ConfigMaps
envFrom: []
# - secretRef:
# name: beszel-hub-env
# - configMapRef:
# name: beszel-hub-config
# -- `spec.PersitentVolumeClaim` configuration
persistentVolumeClaim: