Skip to content

Commit 9730558

Browse files
committed
Adds layerinfo cache configuration
1 parent 6182951 commit 9730558

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

templates/registry/registry-cm.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ data:
155155
{{- end }}
156156
{{- end }}
157157
cache:
158-
layerinfo: redis
158+
layerinfo: {{ .Values.registry.layerCache }}
159159
maintenance:
160160
uploadpurging:
161161
{{- if .Values.registry.upload_purging.enabled }}

values.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -786,6 +786,9 @@ registry:
786786
# the interval of the purge operations
787787
interval: 24h
788788
dryrun: false
789+
# configure layer caching storage driver.
790+
# options are `redis`, `inmemory` - any other value will disable caching
791+
layerCache: redis
789792

790793
trivy:
791794
# enabled the flag to enable Trivy scanner

0 commit comments

Comments
 (0)