-
Notifications
You must be signed in to change notification settings - Fork 0
feat: redis storage provider and cache deletion jobs (MAPCO-11263) #41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
e021082
c161e4f
40ce69d
ac6e467
a9f72f5
145f48b
f5cd581
7596d83
ab17828
98369d1
5431a37
16b26cc
43c2c11
db86801
935de35
b9cbcbc
ca8a303
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,6 +3,7 @@ | |
| {{- $storage := fromYaml (include "common.storage.merged" .) -}} | ||
| {{- $s3 := ($storage.s3) | default dict -}} | ||
| {{- $fs := ($storage.fs) | default dict -}} | ||
| {{- $redis := fromYaml (include "common.redis.merged" .) -}} | ||
| {{- $internalPvc := (($fs).internalPvc) | default dict -}} | ||
| {{- $fsBasePath := clean (printf "/%s" $internalPvc.mountPath) -}} | ||
| {{- if .Values.enabled -}} | ||
|
|
@@ -74,6 +75,22 @@ data: | |
| {{- end }} | ||
| FS_SUB_PATHS: {{ $subPaths | toJson | quote }} | ||
| {{- end }} | ||
| {{- if has "REDIS" $storage.cleanupStorageProviders }} | ||
| REDIS_DELETE_BATCH_SIZE: {{ $redis.delete.batchSize | default 1000 | quote }} | ||
| REDIS_HOST: {{ $redis.host | quote }} | ||
| REDIS_PORT: {{ $redis.port | default 6379 | quote }} | ||
| REDIS_DB: {{ $redis.db | default 0 | quote }} | ||
| REDIS_SCAN_COUNT: {{ $redis.delete.scanCount | default 1000 | quote }} | ||
| REDIS_TLS_ENABLED: {{ $redis.tlsEnabled | default false | quote }} | ||
| {{- with $redis.auth }} | ||
| {{- if .enabled }} | ||
| {{- if .username }} | ||
| REDIS_USERNAME: {{ .username | quote }} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i guess we want it to be taken from a secret |
||
| {{- end }} | ||
| REDIS_PASSWORD: {{ .password | quote }} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same for this one - from secret |
||
| {{- end }} | ||
| {{- end }} | ||
| {{- end }} | ||
| {{- with .Values.env.strategies.tilesDeletion }} | ||
| TILES_DELETION_BATCH_SIZE: {{ .batchSize | default 1000 | quote }} | ||
| TILES_DELETION_CONCURRENCY: {{ .concurrency | default 10 | quote }} | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| export { createRedisConnection } from './redisClient'; | ||
| export { createS3Client } from './s3Client'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need it if we already have the storage.merged that handle it above