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 twuni#104
  • Loading branch information
nisimond committed May 20, 2023
1 parent d74c33a commit 026ca85
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 026ca85

Please sign in to comment.