fixed storage:

- when persistence is disabled
- when using s3 storage
This commit is contained in:
Unknown 2018-04-16 16:02:09 -04:00 committed by draeron
parent 9bf38c2486
commit 6bb261b924
2 changed files with 4 additions and 4 deletions

View File

@ -8,7 +8,7 @@ data:
config.yml: |+
version: 0.1
log:
level: info
level: {{ .Values.registry.logLevel }}
fields:
service: registry
storage:
@ -17,8 +17,10 @@ data:
{{- end }}
cache:
layerinfo: inmemory
{{- if not .Values.registry.objectStorage }}
filesystem:
rootdirectory: /var/lib/registry
{{- end }}
maintenance:
uploadpurging:
enabled: false

View File

@ -44,11 +44,9 @@ spec:
mountPath: /etc/registry/config.yml
subPath: config.yml
volumes:
{{- if not .Values.registry.objectStorage }}
{{- if not .Values.persistence.enabled }}
{{- if or (not .Values.persistence.enabled) .Values.registry.objectStorage }}
- name: registry-data
emptyDir: {}
{{- end }}
{{- end }}
- name: registry-root-certificate
secret: