Skip to content

Commit

Permalink
Actually use emptydir mount when persistence is disabled
Browse files Browse the repository at this point in the history
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 <amichalik@anduril.com>
  • Loading branch information
xyzzyz committed Nov 15, 2024
1 parent 5943cea commit 984a56f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/zarf-registry/chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,8 @@ spec:
value: "Registry Realm"
- name: REGISTRY_AUTH_HTPASSWD_PATH
value: "/etc/docker/registry/htpasswd"
{{- if .Values.persistence.enabled }}
- name: REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY
value: "/var/lib/registry"
{{- end }}
{{- if .Values.persistence.deleteEnabled }}
- name: REGISTRY_STORAGE_DELETE_ENABLED
value: "true"
Expand Down

0 comments on commit 984a56f

Please sign in to comment.