Skip to content

Commit

Permalink
Allow config of scan interval of output-restructure
Browse files Browse the repository at this point in the history
  • Loading branch information
pvannierop committed Dec 18, 2024
1 parent 5e6f98d commit 2a87d6c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
5 changes: 1 addition & 4 deletions charts/radar-output/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "3.0.2"
description: A Helm chart for RADAR-base output restructure service. This application reads data from intermediate storage and restructure the data into project-> subject-id-> data topic -> data split per hour. This service offers few options to choose the source and target of the pipeline.
name: radar-output
version: 1.0.1
version: 1.1.0
icon: "http://radar-base.org/wp-content/uploads/2022/09/Logo_RADAR-Base-RGB.png"
sources:
- https://github.com/RADAR-base/radar-helm-charts/tree/main/charts/radar-output
Expand All @@ -21,6 +21,3 @@ maintainers:
- email: [email protected]
name: Pim van Nierop
url: https://www.thehyve.nl/experts/pim-van-nierop
- email: [email protected]
name: Nivethika Mahasivam
url: https://www.thehyve.nl/experts/nivethika-mahasivam
5 changes: 3 additions & 2 deletions charts/radar-output/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# radar-output
[![Artifact HUB](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/radar-output)](https://artifacthub.io/packages/helm/radar-base/radar-output)

![Version: 1.0.1](https://img.shields.io/badge/Version-1.0.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.0.2](https://img.shields.io/badge/AppVersion-3.0.2-informational?style=flat-square)
![Version: 1.1.0](https://img.shields.io/badge/Version-1.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.0.2](https://img.shields.io/badge/AppVersion-3.0.2-informational?style=flat-square)

A Helm chart for RADAR-base output restructure service. This application reads data from intermediate storage and restructure the data into project-> subject-id-> data topic -> data split per hour. This service offers few options to choose the source and target of the pipeline.

Expand All @@ -15,7 +15,6 @@ A Helm chart for RADAR-base output restructure service. This application reads d
| ---- | ------ | --- |
| Keyvan Hedayati | <[email protected]> | <https://www.thehyve.nl> |
| Pim van Nierop | <[email protected]> | <https://www.thehyve.nl/experts/pim-van-nierop> |
| Nivethika Mahasivam | <[email protected]> | <https://www.thehyve.nl/experts/nivethika-mahasivam> |

## Source Code

Expand Down Expand Up @@ -68,6 +67,8 @@ A Helm chart for RADAR-base output restructure service. This application reads d
| source.azure.responseTimeout | string | `nil` | Azure HTTP response timeout in seconds |
| source.azure.writeTimeout | string | `nil` | Azure HTTP write timeout in seconds |
| source.azure.readTimeout | string | `nil` | Azure HTTP read timeout in seconds |
| source.index.fullSyncInterval | int | `3600` | Interval in seconds to synchronize the index with the storage (in seconds). This values should be only changed in specific scenarios (e.g. e2e testing). |
| source.index.emptyDirectorySyncInterval | int | `900` | Interval in seconds to also include empty directories during sync with the storage (in seconds). This values should be only changed in specific scenarios (e.g. e2e testing). |
| target.type | string | `"s3"` | Type of the output storage of the RADAR-base pipeline (e.g., s3 or azure) |
| target.s3.endpoint | string | `"http://minio:9000"` | s3 endpoint of the output storage |
| target.s3.accessToken | string | `"access_key"` | s3 access-key of the output storage |
Expand Down
3 changes: 3 additions & 0 deletions charts/radar-output/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ data:
{{- if .azure.readTimeout }}
readTimeout: {{ .azure.readTimeout | int }}
{{- end }}
index:
fullSyncInterval: {{ .index.fullSyncInterval | int }}
emptyDirectorySyncInterval: {{ .index.emptyDirectorySyncInterval | int }}
{{- end }}
{{- with .Values.target }}
Expand Down
7 changes: 7 additions & 0 deletions charts/radar-output/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,13 @@ source:
writeTimeout:
# -- Azure HTTP read timeout in seconds
readTimeout:
index:
# -- Interval in seconds to synchronize the index with the storage (in seconds).
# This values should be only changed in specific scenarios (e.g. e2e testing).
fullSyncInterval: 3600
# -- Interval in seconds to also include empty directories during sync with the storage (in seconds).
# This values should be only changed in specific scenarios (e.g. e2e testing).
emptyDirectorySyncInterval: 900

target:
# -- Type of the output storage of the RADAR-base pipeline (e.g., s3 or azure)
Expand Down

0 comments on commit 2a87d6c

Please sign in to comment.