Skip to content

Commit 984a56f

Browse files
committed
Actually use emptydir mount when persistence is disabled
In #2124, an emptydir was mounted when `persistence.enabled: false` is set. However, this is not enough to make registry work: it crashloops as in issue #1998. This is fixed by setting the env variable specifying storage config even if persistence is disabled. Signed-off-by: Adam Michalik <[email protected]>
1 parent 5943cea commit 984a56f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

packages/zarf-registry/chart/templates/deployment.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,8 @@ spec:
7171
value: "Registry Realm"
7272
- name: REGISTRY_AUTH_HTPASSWD_PATH
7373
value: "/etc/docker/registry/htpasswd"
74-
{{- if .Values.persistence.enabled }}
7574
- name: REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY
7675
value: "/var/lib/registry"
77-
{{- end }}
7876
{{- if .Values.persistence.deleteEnabled }}
7977
- name: REGISTRY_STORAGE_DELETE_ENABLED
8078
value: "true"

0 commit comments

Comments
 (0)