Skip to content

Commit

Permalink
Merge pull request #247 from RADAR-base/oura-connector
Browse files Browse the repository at this point in the history
Add Oura Kafka connector to helm files
  • Loading branch information
mpgxvii authored Jan 4, 2024
2 parents 6afd7a5 + fdbe03b commit 08b418a
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
3 changes: 3 additions & 0 deletions etc/base-secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ radar_appserver:
fitbit_api_client: "secret"
fitbit_api_secret: "secret"

oura_api_client: "secret"
oura_api_secret: "secret"

radar_rest_sources_backend:
postgres:
password: secret
Expand Down
9 changes: 8 additions & 1 deletion etc/base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -233,14 +233,21 @@ radar_appserver:
public_key_endpoints: []

# --------------------------------------------------------- 20-fitbit.yaml ---------------------------------------------------------
# The charts in 20-fitbit.yaml only need to be installed if you will use a Fitbit or Garmin API integration.
# The charts in 20-fitbit.yaml only need to be installed if you will use a Fitbit, Garmin, or Oura API integration.
radar_fitbit_connector:
_install: false
_chart_version: 0.3.1
_extra_timeout: 0
replicaCount: 1
oauthClientId: radar_fitbit_connector

radar_oura_connector:
_install: false
_chart_version: 0.0.3
_extra_timeout: 0
replicaCount: 1
oauthClientId: radar_oura_connector

radar_rest_sources_authorizer:
_install: false
_chart_version: 1.1.2
Expand Down
22 changes: 22 additions & 0 deletions helmfile.d/20-fitbit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,25 @@ releases:
value: {{ dig "restSourceClients" "garmin" "clientSecret" (dig "garmin" "consumerSecret" "" .Values.radar_push_endpoint) .Values.radar_rest_sources_backend }}
- name: client_secret
value: {{ dig "client_secret" (dig "oauth_clients" "radar_rest_sources_auth_backend" "client_secret" "" .Values.management_portal) .Values.radar_rest_sources_backend }}

- name: radar-oura-connector
chart: radar/radar-oura-connector
version: {{ .Values.radar_oura_connector._chart_version }}
installed: {{ .Values.radar_oura_connector._install }}
timeout: {{ add .Values.base_timeout .Values.radar_oura_connector._extra_timeout }}
<<: *logFailedRelease
values:
- {{ .Values.radar_oura_connector | toYaml | indent 8 | trim }}
set:
- name: kafka_num_brokers
value: {{ .Values.kafka_num_brokers }}
{{- if hasKey .Values "oura_api_client" }}
- name: oura_api_client
value: {{ .Values.oura_api_client }}
{{- end }}
{{- if hasKey .Values "oura_api_secret" }}
- name: oura_api_secret
value: {{ .Values.oura_api_secret }}
{{- end }}
- name: oauthClientSecret
value: secret

0 comments on commit 08b418a

Please sign in to comment.