From fdbe03b4e35d21001a2c308af40c966961181f9f Mon Sep 17 00:00:00 2001 From: Pauline Date: Wed, 3 Jan 2024 20:33:53 +0000 Subject: [PATCH] Add Oura kafka connector to stack --- etc/base-secrets.yaml | 3 +++ etc/base.yaml | 9 ++++++++- helmfile.d/20-fitbit.yaml | 22 ++++++++++++++++++++++ 3 files changed, 33 insertions(+), 1 deletion(-) diff --git a/etc/base-secrets.yaml b/etc/base-secrets.yaml index ce392ebda..6e422b31d 100644 --- a/etc/base-secrets.yaml +++ b/etc/base-secrets.yaml @@ -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 diff --git a/etc/base.yaml b/etc/base.yaml index dbc6d2eda..7b780fc4d 100644 --- a/etc/base.yaml +++ b/etc/base.yaml @@ -233,7 +233,7 @@ 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 @@ -241,6 +241,13 @@ radar_fitbit_connector: 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 diff --git a/helmfile.d/20-fitbit.yaml b/helmfile.d/20-fitbit.yaml index 6ff45b5e1..f9333e0d4 100644 --- a/helmfile.d/20-fitbit.yaml +++ b/helmfile.d/20-fitbit.yaml @@ -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