Skip to content

Add image.pullSecrets for private registries - #207

Merged
cfis merged 1 commit into
docker-mailserver:masterfrom
tillo:image-pull-secrets
Nov 24, 2026
Merged

cfis merged 1 commit into
docker-mailserver:masterfrom
tillo:image-pull-secrets

Conversation

@tillo

@tillo tillo commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

The chart cannot set imagePullSecrets, so pulling from a private registry (a mirror or a rebuilt image) needs a separate ServiceAccount with the secret plus serviceAccount.create: false.

image.pullSecrets is rendered as the pod's imagePullSecrets, so it covers every container, the metrics exporter included. The default [] renders nothing, so existing releases do not change.

Tests: two cases in tests/deployment_test.yaml; all unit tests pass and snapshots are unchanged; helm lint passes with both CI values files.

The chart had no way to set imagePullSecrets, so pulling the image from a
private registry (a mirror, or a rebuilt image) meant creating a separate
ServiceAccount carrying the secret and setting serviceAccount.create=false.

image.pullSecrets is rendered as the pod's imagePullSecrets, so it covers
every container, the metrics exporter included. The default, an empty list,
renders nothing, so existing releases do not change.

Tests: two cases in tests/deployment_test.yaml; snapshots unchanged.
@tillo
tillo requested a review from funkypenguin as a code owner November 23, 2026 08:13
@cfis

cfis commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

Thanks!

@cfis
cfis merged commit 14040a8 into docker-mailserver:master Nov 24, 2026
5 checks passed
@cfis cfis mentioned this pull request Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants