From 9a167edd326e0a702d9fd7bd5299514ec4c2f712 Mon Sep 17 00:00:00 2001 From: JaseKoonce Date: Wed, 16 Oct 2024 12:48:32 -0500 Subject: [PATCH] fix: htpasswd mount issues --- packages/zarf-registry/chart/templates/deployment.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/zarf-registry/chart/templates/deployment.yaml b/packages/zarf-registry/chart/templates/deployment.yaml index e0e878eb82..01ad5b7957 100644 --- a/packages/zarf-registry/chart/templates/deployment.yaml +++ b/packages/zarf-registry/chart/templates/deployment.yaml @@ -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 }} @@ -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 @@ -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 }}