mirror of
https://github.com/henrygd/beszel.git
synced 2026-10-21 22:02:34 +00:00
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:
@@ -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 }}
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user