Skip to content

Commit c5e758e

Browse files
author
ewelinagr
committed
feat: add radar-fitbit-connector-strimzi chart
1 parent 74d58bc commit c5e758e

File tree

19 files changed

+740
-1
lines changed

19 files changed

+740
-1
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Patterns to ignore when building packages.
2+
# This supports shell glob matching, relative path matching, and
3+
# negation (prefixed with !). Only one pattern per line.
4+
.DS_Store
5+
# Common VCS dirs
6+
.git/
7+
.gitignore
8+
.bzr/
9+
.bzrignore
10+
.hg/
11+
.hgignore
12+
.svn/
13+
# Common backup files
14+
*.swp
15+
*.bak
16+
*.tmp
17+
*~
18+
# Various IDEs
19+
.project
20+
.idea/
21+
*.tmproj
22+
.vscode/
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
dependencies:
2+
- name: common
3+
repository: https://radar-base.github.io/radar-helm-charts
4+
version: 2.27.0
5+
digest: sha256:397fd12e07f1aa1a5280579406a75b169f8262ac4214584ea366460277288546
6+
generated: "2025-04-08T16:44:09.158978088+02:00"
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
apiVersion: v2
2+
appVersion: 3.9.0
3+
description: A Helm chart for RADAR-base fitbit Kafka connector using the Strimzi Operator. This application collects data from participants via the Fitbit Web API.
4+
name: radar-fitbit-connector-strimzi
5+
version: 0.0.1
6+
icon: "http://radar-base.org/wp-content/uploads/2022/09/Logo_RADAR-Base-RGB.png"
7+
sources:
8+
- https://github.com/RADAR-base/radar-helm-charts/tree/main/charts/radar-fitbit-connector-strimzi
9+
- https://github.com/RADAR-base/RADAR-REST-Connector
10+
keywords:
11+
- radar-base
12+
- remote-trial
13+
annotations:
14+
artifacthub.io/license: Apache-2.0
15+
deprecated: false
16+
type: application
17+
home: "https://radar-base.org"
18+
maintainers:
19+
- email: pim@thehyve.nl
20+
name: Pim van Nierop
21+
url: https://www.thehyve.nl/experts/pim-van-nierop
22+
dependencies:
23+
- name: common
24+
repository: https://radar-base.github.io/radar-helm-charts
25+
tags:
26+
- bitnami-common
27+
version: 2.x.x

charts/radar-fitbit-connector-strimzi/DOCS.md.gotmpl

Whitespace-only changes.
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
2+
3+
# radar-fitbit-connector-strimzi
4+
[![Artifact HUB](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/radar-fitbit-connector-strimzi)](https://artifacthub.io/packages/helm/radar-base/radar-fitbit-connector-strimzi)
5+
6+
![Version: 0.0.1](https://img.shields.io/badge/Version-0.0.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.9.0](https://img.shields.io/badge/AppVersion-3.9.0-informational?style=flat-square)
7+
8+
A Helm chart for RADAR-base fitbit Kafka connector using the Strimzi Operator. This application collects data from participants via the Fitbit Web API.
9+
10+
**Homepage:** <https://radar-base.org>
11+
12+
## Maintainers
13+
14+
| Name | Email | Url |
15+
| ---- | ------ | --- |
16+
| Pim van Nierop | <pim@thehyve.nl> | <https://www.thehyve.nl/experts/pim-van-nierop> |
17+
18+
## Source Code
19+
20+
* <https://github.com/RADAR-base/radar-helm-charts/tree/main/charts/radar-fitbit-connector-strimzi>
21+
* <https://github.com/RADAR-base/RADAR-REST-Connector>
22+
23+
## Prerequisites
24+
* Kubernetes 1.28+
25+
* Kubectl 1.28+
26+
* Helm 3.1.0+
27+
* PV provisioner support in the underlying infrastructure
28+
29+
## Requirements
30+
31+
| Repository | Name | Version |
32+
|------------|------|---------|
33+
| https://radar-base.github.io/radar-helm-charts | common | 2.x.x |
34+
35+
## Values
36+
37+
| Key | Type | Default | Description |
38+
|-----|------|---------|-------------|
39+
| replicaCount | int | `1` | Number of radar-fitbit-connector-strimzi replicas to deploy |
40+
| image.registry | string | `"docker.io"` | Image registry |
41+
| image.repository | string | `"radarbase/kafka-connect-rest-fitbit-source"` | Image repository |
42+
| image.tag | string | `nil` | Image tag (immutable tags are recommended) Overrides the image tag whose default is the chart appVersion. |
43+
| image.digest | string | `""` | Image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag |
44+
| image.pullPolicy | string | `"IfNotPresent"` | Image pull policy |
45+
| image.pullSecrets | list | `[]` | Optionally specify an array of imagePullSecrets. Secrets must be manually created in the namespace. e.g: pullSecrets: - myRegistryKeySecretName |
46+
| nameOverride | string | `""` | String to partially override radar-fitbit-connector-strimzi.fullname template with a string (will prepend the release name) |
47+
| fullnameOverride | string | `""` | String to fully override radar-fitbit-connector-strimzi.fullname template with a string |
48+
| podSecurityContext | object | `{}` | Configure radar-fitbit-connector-strimzi pods' Security Context |
49+
| securityContext | object | `{}` | Configure radar-fitbit-connector-strimzi containers' Security Context |
50+
| service.type | string | `"ClusterIP"` | Kubernetes Service type |
51+
| service.port | int | `8083` | radar-fitbit-connector-strimzi port |
52+
| resources.requests | object | `{"cpu":"100m","memory":"1Gi"}` | CPU/Memory resource requests |
53+
| jvmOptions.xmx | string | `"768m"` | |
54+
| jvmOptions.xms | string | `"256m"` | |
55+
| persistence.enabled | bool | `false` | Enable persistence using PVC |
56+
| persistence.accessMode | string | `"ReadWriteOnce"` | PVC Access Mode for radar-fitbit-connector-strimzi volume |
57+
| persistence.size | string | `"5Gi"` | PVC Storage Request for radar-fitbit-connector-strimzi volume |
58+
| persistence.fsUserOverride | string | `nil` | Overrides the user of the fitbit connector logs, for example, `"1000:1000"`. |
59+
| nodeSelector | object | `{}` | Node labels for pod assignment |
60+
| tolerations | list | `[]` | Toleration labels for pod assignment |
61+
| affinity | object | `{}` | Affinity labels for pod assignment |
62+
| secret.jaas | object | `{"key":"sasl.jaas.config","name":"shared-service-user"}` | Secret for the Kafka SASL JAAS configuration |
63+
| extraEnvVars | list | `[]` | Extra environment variables |
64+
| customLivenessProbe | object | `{}` | Custom livenessProbe that overrides the default one |
65+
| livenessProbe.enabled | bool | `true` | Enable livenessProbe |
66+
| livenessProbe.initialDelaySeconds | int | `5` | Initial delay seconds for livenessProbe |
67+
| livenessProbe.periodSeconds | int | `30` | Period seconds for livenessProbe |
68+
| livenessProbe.timeoutSeconds | int | `5` | Timeout seconds for livenessProbe |
69+
| livenessProbe.successThreshold | int | `1` | Success threshold for livenessProbe |
70+
| livenessProbe.failureThreshold | int | `3` | Failure threshold for livenessProbe |
71+
| customReadinessProbe | object | `{}` | Custom readinessProbe that overrides the default one |
72+
| readinessProbe.enabled | bool | `true` | Enable readinessProbe |
73+
| readinessProbe.initialDelaySeconds | int | `5` | Initial delay seconds for readinessProbe |
74+
| readinessProbe.periodSeconds | int | `30` | Period seconds for readinessProbe |
75+
| readinessProbe.timeoutSeconds | int | `5` | Timeout seconds for readinessProbe |
76+
| readinessProbe.successThreshold | int | `1` | Success threshold for readinessProbe |
77+
| readinessProbe.failureThreshold | int | `3` | Failure threshold for readinessProbe |
78+
| networkpolicy | object | check `values.yaml` | Network policy defines who can access this application and who this applications has access to |
79+
| kafka | string | `"SASL_PLAINTEXT://radar-kafka-kafka-bootstrap:9094"` | URI of Kafka brokers of the cluster |
80+
| schema_registry | string | `"http://radar-kafka-schema-registry:8081"` | URL of the Kafka schema registry |
81+
| radar_rest_sources_backend_url | string | `"http://radar-rest-sources-backend:8080/rest-sources/backend/"` | Base URL of the rest-sources-authorizer-backend service |
82+
| connector_num_tasks | string | `"5"` | Number of connector tasks to be used in kafka-connector spec properties |
83+
| fitbit_api_url | string | `"https://api.fitbit.com"` | Fitbit API URL. |
84+
| fitbit_api_client | string | `""` | Fitbit API client id. |
85+
| fitbit_api_secret | string | `""` | Fitbit API client secret. |
86+
| oauthClientId | string | `"radar_fitbit_connector"` | OAuth2 client id from Management Portal |
87+
| oauthClientSecret | string | `"secret"` | OAuth2 client secret from Management Portal |
88+
| auth_url | string | `"http://management-portal:8080/managementportal/oauth/token"` | OAuth2 Auth URL for connector client to get access tokens |
89+
| managementportal_url | string | `"http://management-portal:8080/managementportal"` | URL of Management Portal. This will be used to create URLs to access Management Portal |
90+
| includeIntradayData | bool | `true` | Set to true, if intraday access data should be collected by the connector. This will be set in connector.properties. |
91+
| user_repository_class | string | `"ServiceUserRepositoryLegacy"` | Class of the user repository to use. This should be a class that implements the UserRepository interface. |
92+
| rest_source_poll_interval_ms | int | `60000` | How often to poll the source URL. Only use to speed up processing times during e2e testing. |
93+
| fitbit_user_poll_interval | int | `5000` | Polling interval per Fitbit user per request route in seconds. Only use to speed up processing times during e2e testing. |
94+
| application_loop_interval_ms | int | `300000` | How often to perform the main application loop (only controls how often to poll for new user registrations). Only use to speed up processing times during e2e testing. |
95+
| user_cache_refresh_interval_ms | int | `3600000` | How often to invalidate the cache and poll for new user registrations. Only use to speed up processing times during e2e testing. |
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{{ template "common.header" . }}
2+
{{ template "chart.deprecationWarning" . }}
3+
4+
{{ template "chart.badgesSection" . }}
5+
6+
{{ template "chart.description" . }}
7+
8+
{{ template "chart.homepageLine" . }}
9+
10+
{{ template "chart.maintainersSection" . }}
11+
12+
{{ template "chart.sourcesSection" . }}
13+
14+
{{ template "common.prerequisiteswithpv" . }}
15+
16+
{{ template "chart.requirementsSection" . }}
17+
18+
{{ template "chart.valuesSection" . }}
15.3 KB
Binary file not shown.

charts/radar-fitbit-connector-strimzi/templates/NOTES.txt

Whitespace-only changes.
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{{/* vim: set filetype=mustache: */}}
2+
{{/*
3+
Expand the name of the chart.
4+
*/}}
5+
{{- define "radar-fitbit-connector-strimzi.name" -}}
6+
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
7+
{{- end -}}
8+
9+
{{/*
10+
Return the proper image name
11+
*/}}
12+
{{- define "radar-fitbit-connector-strimzi.image" -}}
13+
{{ include "common.images.image" (dict "imageRoot" .Values.image "global" .Values.global "chart" .Chart ) }}
14+
{{- end -}}
15+
16+
{{/*
17+
Return the proper Docker Image Registry Secret Names
18+
*/}}
19+
{{- define "radar-fitbit-connector-strimzi.imagePullSecrets" -}}
20+
{{- include "common.images.pullSecrets" (dict "images" (list .Values.image) "global" .Values.global) -}}
21+
{{- end -}}
22+
23+
{{/*
24+
Create a default fully qualified app name.
25+
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
26+
If release name contains chart name it will be used as a full name.
27+
*/}}
28+
{{- define "radar-fitbit-connector-strimzi.fullname" -}}
29+
{{- if .Values.fullnameOverride -}}
30+
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
31+
{{- else -}}
32+
{{- $name := default .Chart.Name .Values.nameOverride -}}
33+
{{- if contains $name .Release.Name -}}
34+
{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
35+
{{- else -}}
36+
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
37+
{{- end -}}
38+
{{- end -}}
39+
{{- end -}}
40+
41+
{{/*
42+
Common labels
43+
*/}}
44+
{{- define "radar-fitbit-connector-strimzi.labels" -}}
45+
helm.sh/chart: {{ include "radar-fitbit-connector-strimzi.chart" . }}
46+
{{ include "radar-fitbit-connector-strimzi.selectorLabels" . }}
47+
{{- if .Chart.AppVersion }}
48+
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
49+
{{- end }}
50+
app.kubernetes.io/managed-by: {{ .Release.Service }}
51+
{{- end }}
52+
53+
{{/*
54+
Selector labels
55+
*/}}
56+
{{- define "radar-fitbit-connector-strimzi.selectorLabels" -}}
57+
app.kubernetes.io/name: {{ include "radar-fitbit-connector-strimzi.name" . }}
58+
app.kubernetes.io/instance: {{ .Release.Name }}
59+
{{- end }}
60+
61+
{{/*
62+
Create chart name and version as used by the chart label.
63+
*/}}
64+
{{- define "radar-fitbit-connector-strimzi.chart" -}}
65+
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
66+
{{- end -}}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
apiVersion: v1
2+
kind: ConfigMap
3+
metadata:
4+
name: {{ template "common.names.fullname" . }}-users
5+
namespace: {{ include "common.names.namespace" . | quote }}
6+
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
7+
{{- if .Values.commonAnnotations }}
8+
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
9+
{{- end }}
10+
data:
11+
fitbit-user.yml: |
12+
---
13+
# Unique user key
14+
id: test
15+
# Project ID to be used in org.radarcns.kafka.ObservationKey record keys
16+
projectId: radar-test
17+
# User ID to be used in org.radarcns.kafka.ObservationKey record keys
18+
userId: test
19+
# Source ID to be used in org.radarcns.kafka.ObservationKey record keys
20+
sourceId: charge-2
21+
# Date from when to collect data.
22+
startDate: 2018-08-06T00:00:00Z
23+
# Date until when to collect data.
24+
endDate: 2019-01-01T00:00:00Z
25+
# Fitbit user ID as returned by the Fitbit authentication procedure
26+
externalUserId: ?
27+
oauth2:
28+
# Fitbit OAuth 2.0 access token as returned by the Fitbit authentication procedure
29+
accessToken: ?
30+
# Fitbit OAuth 2.0 refresh token as returned by the Fitbit authentication procedure
31+
refreshToken: ?
32+
# Optional expiry time of the access token. If absent, it will be estimated to one hour
33+
# when the source connector starts. When an authentication error occurs, a new access token will
34+
# be fetched regardless of the value in this field.
35+
#expiresAt: 2018-08-06T00:00:00Z

0 commit comments

Comments
 (0)