Skip to content

Commit

Permalink
fix: htpasswd mount issues
Browse files Browse the repository at this point in the history
Signed-off-by: JaseKoonce <jase@defenseunicorns.com>
  • Loading branch information
JaseKoonce committed Oct 16, 2024
1 parent 56e48d4 commit 439e506
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/zarf-registry/chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ spec:
resources:
{{ toYaml .Values.resources | indent 12 }}
env:
{{- if .Values.persistence.enabled }}
- name: REGISTRY_AUTH
value: "htpasswd"
- name: REGISTRY_AUTH_HTPASSWD_REALM
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 }}
Expand Down Expand Up @@ -111,6 +111,7 @@ spec:
{{ toYaml .Values.tolerations | indent 8 }}
{{- end }}
volumes:
{{- if .Values.persistence.enabled }}
- name: config
secret:
secretName: {{ template "docker-registry.fullname" . }}-secret
Expand All @@ -119,7 +120,6 @@ spec:
path: config.yml
- key: htpasswd
path: htpasswd
{{- if .Values.persistence.enabled }}
- name: data
persistentVolumeClaim:
claimName: {{ if .Values.persistence.existingClaim }}{{ .Values.persistence.existingClaim }}{{- else }}{{ template "docker-registry.fullname" . }}{{- end }}
Expand Down

0 comments on commit 439e506

Please sign in to comment.