Skip to content

Commit d5c34fe

Browse files
committed
feat: extraEnv in helm chart
1 parent f1e9c61 commit d5c34fe

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

self-host/charts/capacitor-next/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ spec:
5454
- secretRef:
5555
name: {{ .Values.existingSecret.name }}
5656
{{- end }}
57+
{{- with .Values.extraEnv }}
58+
env:
59+
{{- toYaml . | nindent 12 }}
60+
{{- end }}
5761
volumeMounts:
5862
- name: registry
5963
mountPath: /app/backend/registry.yaml

self-host/charts/capacitor-next/values.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,24 @@ extraVolumeMounts: []
179179
existingSecret:
180180
name: "" # Name of the existing secret to use
181181

182+
# Extra environment variables for the Capacitor Next server (optional)
183+
# These can be used, for example, to configure FluxCD controller logs for HelmRelease and Kustomization resources.
184+
extraEnv:
185+
# - name: FLUXCD_NAMESPACE
186+
# value: "flux-system"
187+
# - name: FLUXCD_HELM_CONTROLLER_NAME
188+
# value: "helm-controller"
189+
# - name: FLUXCD_HELM_CONTROLLER_LABEL_KEY
190+
# value: "app.kubernetes.io/component"
191+
# - name: FLUXCD_HELM_CONTROLLER_LABEL_VALUE
192+
# value: "helm-controller"
193+
# - name: FLUXCD_KUSTOMIZE_CONTROLLER_NAME
194+
# value: "kustomize-controller"
195+
# - name: FLUXCD_KUSTOMIZE_CONTROLLER_LABEL_KEY
196+
# value: "app.kubernetes.io/component"
197+
# - name: FLUXCD_KUSTOMIZE_CONTROLLER_LABEL_VALUE
198+
# value: "kustomize-controller"
199+
182200
# Security context configuration
183201
securityContext:
184202
enabled: true

0 commit comments

Comments
 (0)