mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-22 16:48:30 +01:00
fixed storage:
- when persistence is disabled - when using s3 storage
This commit is contained in:
parent
9bf38c2486
commit
6bb261b924
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user