Skip to content

Commit 456cf2b

Browse files
committed
Disable blob caching when garbage-collection is enabled
The garbage-collection cronjob will cause the registry to go into an inconsistent state if the blob cache is not cleared afterward. Since the cronjob has no facility for doing that, disable blob caching entirely when garbage-collection is in use. Fixes: Issue #104
1 parent d6bc315 commit 456cf2b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

templates/configmap.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
{{- /* Blob caching and the garbage-collection cronjob do not mix */ -}}
2+
{{- if .Values.garbageCollect.enabled -}}
3+
{{- $_ := set .Values.configData.storage.cache "blobdescriptor" "disabled" -}}
4+
{{- end -}}
15
apiVersion: v1
26
kind: ConfigMap
37
metadata:

0 commit comments

Comments
 (0)