From 7c3cb67eb1b557e925cbd269ec7265a796ece384 Mon Sep 17 00:00:00 2001 From: Nicolas Simonds Date: Sat, 20 May 2023 13:53:03 -0700 Subject: [PATCH] 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 --- templates/configmap.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/configmap.yaml b/templates/configmap.yaml index 0f046ea..3c94b63 100644 --- a/templates/configmap.yaml +++ b/templates/configmap.yaml @@ -1,3 +1,7 @@ +{{- /* Blob caching and the garbage-collection cronjob do not mix */ -}} +{{- if .Values.garbageCollect.enabled -}} +{{- $_ := set .Values.configData.storage.cache "blobdescriptor" "disabled" -}} +{{- end -}} apiVersion: v1 kind: ConfigMap metadata: