Skip to content

Commit 46de4c1

Browse files
authored
fix(operator): Set object storage for delete requests when using retention (#13562)
1 parent a88a0d3 commit 46de4c1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

‎operator/internal/manifests/internal/config/build_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1833,6 +1833,7 @@ compactor:
18331833
retention_enabled: true
18341834
retention_delete_delay: 4h
18351835
retention_delete_worker_count: 50
1836+
delete_request_store: s3
18361837
frontend:
18371838
tail_proxy_url: http://loki-querier-http-lokistack-dev.default.svc.cluster.local:3100
18381839
compress_responses: true

‎operator/internal/manifests/internal/config/loki-config.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,14 @@ common:
9999
compactor:
100100
compaction_interval: 2h
101101
working_directory: {{ .StorageDirectory }}/compactor
102-
{{- if .Retention.Enabled }}{{- with .Retention }}
102+
{{- if .Retention.Enabled }}
103+
{{- with .Retention }}
103104
retention_enabled: true
104105
retention_delete_delay: 4h
105106
retention_delete_worker_count: {{.DeleteWorkerCount}}
106-
{{- end }}{{- end }}
107+
{{- end }}
108+
delete_request_store: {{.ObjectStorage.SharedStore}}
109+
{{- end }}
107110
frontend:
108111
tail_proxy_url: {{ .Querier.Protocol }}://{{ .Querier.FQDN }}:{{ .Querier.Port }}
109112
{{- if .Gates.HTTPEncryption }}

0 commit comments

Comments
 (0)