Skip to content

[radar-push-endpoint] Allow backfill configuration #294

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions charts/radar-push-endpoint/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
appVersion: "0.3.2"
appVersion: "0.3.3"
description: A Helm chart for RADAR-base Push Endpoint. REST Gateway to Kafka, for incoming data from Push or Subscription based WEB APIs. It performs authentication, authorization and content validation. For more details of the configurations, see https://github.com/RADAR-base/RADAR-PushEndpoint.
name: radar-push-endpoint
version: 0.4.2
version: 0.4.3
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-push-endpoint
Expand Down
17 changes: 16 additions & 1 deletion charts/radar-push-endpoint/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# radar-push-endpoint
[![Artifact HUB](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/radar-push-endpoint)](https://artifacthub.io/packages/helm/radar-base/radar-push-endpoint)

![Version: 0.4.2](https://img.shields.io/badge/Version-0.4.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.3.2](https://img.shields.io/badge/AppVersion-0.3.2-informational?style=flat-square)
![Version: 0.4.3](https://img.shields.io/badge/Version-0.4.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.3.3](https://img.shields.io/badge/AppVersion-0.3.3-informational?style=flat-square)

A Helm chart for RADAR-base Push Endpoint. REST Gateway to Kafka, for incoming data from Push or Subscription based WEB APIs. It performs authentication, authorization and content validation. For more details of the configurations, see https://github.com/RADAR-base/RADAR-PushEndpoint.

Expand Down Expand Up @@ -107,4 +107,19 @@ A Helm chart for RADAR-base Push Endpoint. REST Gateway to Kafka, for incoming d
| garmin.userRepositoryClientId | string | `"radar_push_endpoint"` | The client ID to access the user repository if the repository requires authorization |
| garmin.userRepositoryClientSecret | string | `"secret"` | The client secret to access the user repository if the repository requires authorization |
| garmin.userRepositoryTokenUrl | string | `"http://management-portal:8080/managementportal/oauth/token"` | The token URL for authentication (Usually the management portal token url). Make sure to avoid trailing slash (/) in the url. |
| garmin.backfill.enabled | bool | `true` | Whether to enable Garmin backfill requests |
| garmin.backfill.activitiesEnabled | bool | `true` | Whether to enable Garmin backfill requests for activities |
| garmin.backfill.activityDetailsEnabled | bool | `true` | Whether to enable Garmin backfill requests for activity details |
| garmin.backfill.bodyCompositionsEnabled | bool | `true` | Whether to enable Garmin backfill requests for body composition |
| garmin.backfill.dailiesEnabled | bool | `true` | Whether to enable Garmin backfill requests for dailies |
| garmin.backfill.epochSummariesEnabled | bool | `true` | Whether to enable Garmin backfill requests for epoch summaries |
| garmin.backfill.pulseOXEnabled | bool | `true` | Whether to enable Garmin backfill requests for pulse oximeter |
| garmin.backfill.sleepsEnabled | bool | `true` | Whether to enable Garmin backfill requests for sleep |
| garmin.backfill.stressEnabled | bool | `true` | Whether to enable Garmin backfill requests for stress |
| garmin.backfill.userMetricsEnabled | bool | `true` | Whether to enable Garmin backfill requests for user metrics |
| garmin.backfill.moveIQEnabled | bool | `true` | Whether to enable Garmin backfill requests for moveIQ |
| garmin.backfill.respirationEnabled | bool | `true` | Whether to enable Garmin backfill requests for respiration |
| garmin.backfill.bloodPressureEnabled | bool | `false` | Whether to enable blood pressure backfill requests |
| garmin.backfill.healthSnapshotEnabled | bool | `false` | Whether to enable health snapshot backfill requests |
| garmin.backfill.heartRateVariabilityEnabled | bool | `false` | Whether to enable heart rate variability backfill requests |
| redis.url | string | `"redis://localhost:6379"` | The redis server URL. Redis is used to keep track of garmin backfill progress and any other key value properties. |
16 changes: 15 additions & 1 deletion charts/radar-push-endpoint/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,24 @@ data:
userRepositoryClientSecret: {{ .Values.garmin.userRepositoryClientSecret }}
userRepositoryTokenUrl: {{ .Values.garmin.userRepositoryTokenUrl }}
backfill:
enabled: true
enabled: {{ .Values.garmin.backfill.enabled }}
# Redis configuration
redis:
# Redis URI
uri: {{ .Values.redis.url }}
# Key prefix for locks
lockPrefix: radar-push-garmin/lock/
activitiesEnabled: {{ .Values.garmin.backfill.activitiesEnabled }}
activityDetailsEnabled: {{ .Values.garmin.backfill.activityDetailsEnabled }}
bodyCompositionsEnabled: {{ .Values.garmin.backfill.bodyCompositionsEnabled }}
dailiesEnabled: {{ .Values.garmin.backfill.dailiesEnabled }}
epochSummariesEnabled: {{ .Values.garmin.backfill.epochSummariesEnabled }}
pulseOXEnabled: {{ .Values.garmin.backfill.pulseOXEnabled }}
sleepsEnabled: {{ .Values.garmin.backfill.sleepsEnabled }}
stressEnabled: {{ .Values.garmin.backfill.stressEnabled }}
userMetricsEnabled: {{ .Values.garmin.backfill.userMetricsEnabled }}
moveIQEnabled: {{ .Values.garmin.backfill.moveIQEnabled }}
respirationEnabled: {{ .Values.garmin.backfill.respirationEnabled }}
bloodPressureEnabled: {{ .Values.garmin.backfill.bloodPressureEnabled }}
healthSnapshotEnabled: {{ .Values.garmin.backfill.healthSnapshotEnabled }}
heartRateVariabilityEnabled: {{ .Values.garmin.backfill.heartRateVariabilityEnabled }}
31 changes: 31 additions & 0 deletions charts/radar-push-endpoint/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,37 @@ garmin:
userRepositoryClientSecret: "secret"
# -- The token URL for authentication (Usually the management portal token url). Make sure to avoid trailing slash (/) in the url.
userRepositoryTokenUrl: "http://management-portal:8080/managementportal/oauth/token"
backfill:
# -- Whether to enable Garmin backfill requests
enabled: true
# -- Whether to enable Garmin backfill requests for activities
activitiesEnabled: true
# -- Whether to enable Garmin backfill requests for activity details
activityDetailsEnabled: true
# -- Whether to enable Garmin backfill requests for body composition
bodyCompositionsEnabled: true
# -- Whether to enable Garmin backfill requests for dailies
dailiesEnabled: true
# -- Whether to enable Garmin backfill requests for epoch summaries
epochSummariesEnabled: true
# -- Whether to enable Garmin backfill requests for pulse oximeter
pulseOXEnabled: true
# -- Whether to enable Garmin backfill requests for sleep
sleepsEnabled: true
# -- Whether to enable Garmin backfill requests for stress
stressEnabled: true
# -- Whether to enable Garmin backfill requests for user metrics
userMetricsEnabled: true
# -- Whether to enable Garmin backfill requests for moveIQ
moveIQEnabled: true
# -- Whether to enable Garmin backfill requests for respiration
respirationEnabled: true
# -- Whether to enable blood pressure backfill requests
bloodPressureEnabled: false
# -- Whether to enable health snapshot backfill requests
healthSnapshotEnabled: false
# -- Whether to enable heart rate variability backfill requests
heartRateVariabilityEnabled: false

redis:
# -- The redis server URL. Redis is used to keep track of garmin backfill progress and any other key value properties.
Expand Down