From 1cbc1ef4f8cb610358cf0094f6f79d6c44d6f76f Mon Sep 17 00:00:00 2001 From: Arnob Kumar Saha Date: Sun, 28 Jun 2026 13:28:52 +0600 Subject: [PATCH] Fix regcache for registry 3.x config loading (#1285) registry:3 ignores REGISTRY_CONFIGURATION_PATH and serves the built-in /etc/distribution/config.yml, so the pull-through proxy config was never loaded (every pull returned manifest unknown). Pass the config path as an arg instead, and add the age/interval/dryrun/dontcleanuptmpdir fields that 3.x requires when uploadpurging is enabled. Signed-off-by: Arnob Kumar Saha Signed-off-by: Tamal Saha Co-authored-by: Tamal Saha --- charts/regcache/templates/configmap.yaml | 4 ++++ charts/regcache/templates/deployment.yaml | 5 ++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/charts/regcache/templates/configmap.yaml b/charts/regcache/templates/configmap.yaml index 0a7c3bb77..41cbcd9f1 100644 --- a/charts/regcache/templates/configmap.yaml +++ b/charts/regcache/templates/configmap.yaml @@ -21,6 +21,10 @@ data: maintenance: uploadpurging: enabled: true + age: 72h + interval: 24h + dryrun: false + dontcleanuptmpdir: false http: addr: :5000 headers: diff --git a/charts/regcache/templates/deployment.yaml b/charts/regcache/templates/deployment.yaml index 2ef9c6bef..c886115df 100644 --- a/charts/regcache/templates/deployment.yaml +++ b/charts/regcache/templates/deployment.yaml @@ -40,14 +40,13 @@ spec: {{- end }} image: "{{ include "regcache.image.registry" . }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} + args: ["serve", "/etc/docker/registry/config.yml"] ports: - name: registry containerPort: 5000 protocol: TCP - env: - - name: REGISTRY_CONFIGURATION_PATH - value: /etc/docker/registry/config.yml {{- if .Values.username }} + env: - name: REGISTRY_PROXY_USERNAME valueFrom: secretKeyRef: