Skip to content

Commit abe0a88

Browse files
chore: update builder-api to 0.0.4
1 parent 79fd85f commit abe0a88

3 files changed

Lines changed: 40 additions & 3 deletions

File tree

charts/builder-api/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ apiVersion: v2
22
name: builder-api
33
description: website-builder backend API (createSite, listMySites, getSite, publishCanned)
44
type: application
5-
version: 0.0.3
6-
appVersion: 0.0.3
5+
version: 0.0.4
6+
appVersion: 0.0.4
77
maintainers:
88
- name: frederic.rous
99
icon: https://github.githubassets.com/images/icons/emoji/electric_plug.png

charts/builder-api/templates/deployment.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,16 @@ spec:
3232
- name: {{ $key }}
3333
value: {{ $value | quote }}
3434
{{- end }}
35+
{{- with .Values.envFrom }}
36+
envFrom:
37+
{{- toYaml . | nindent 12 }}
38+
{{- end }}
39+
{{- if .Values.internalCA.enabled }}
40+
volumeMounts:
41+
- name: internal-ca
42+
mountPath: /certs
43+
readOnly: true
44+
{{- end }}
3545
livenessProbe:
3646
{{- toYaml .Values.livenessProbe | nindent 12 }}
3747
readinessProbe:
@@ -40,6 +50,16 @@ spec:
4050
{{- toYaml .Values.resources | nindent 12 }}
4151
securityContext:
4252
{{- toYaml .Values.securityContext | nindent 12 }}
53+
{{- if .Values.internalCA.enabled }}
54+
volumes:
55+
- name: internal-ca
56+
secret:
57+
secretName: {{ .Values.internalCA.secretName }}
58+
items:
59+
- key: {{ .Values.internalCA.key | default "ca.crt" }}
60+
path: ca.crt
61+
optional: true
62+
{{- end }}
4363
{{- with .Values.nodeSelector }}
4464
nodeSelector:
4565
{{- toYaml . | nindent 8 }}

charts/builder-api/values.yaml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,24 @@ env:
1212
BUILDER_API_PORT: "4000"
1313
# DATABASE_URL, OIDC_*, S3_*, BUILDER_PUBLIC_HOST come from the
1414
# HelmRelease postRenderer in homelab (Vault + reflected secrets +
15-
# inline configs).
15+
# inline configs). SMTP_HOST/PORT/USER/FROM also come from the
16+
# HelmRelease envs; SMTP_PASS is injected via envFrom referencing
17+
# an ExternalSecret-backed Secret (so it never lives in plaintext
18+
# YAML).
19+
20+
# Extra envs from Secrets / ConfigMaps. Used by homelab to inject
21+
# SMTP_PASS via an ExternalSecret-backed Secret. Empty list in the
22+
# chart default — every entry has to come from the consumer.
23+
envFrom: []
24+
25+
# Mounts the homelab's internal CA cert at /certs/ca.crt so the SMTP
26+
# transport can verify stalwart's TLS without disabling cert checks.
27+
# Disabled by default; homelab enables + reflects vault-internal-ca
28+
# into the builder namespace via internal-ca-reflector.yaml.
29+
internalCA:
30+
enabled: false
31+
secretName: vault-internal-ca
32+
key: tls.crt
1633

1734
resources:
1835
requests:

0 commit comments

Comments
 (0)