Skip to content

Commit

Permalink
Disable blob caching when garbage-collection is enabled
Browse files Browse the repository at this point in the history
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
  • Loading branch information
nisimond committed Apr 25, 2024
1 parent d6bc315 commit 456cf2b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 456cf2b

Please sign in to comment.