Skip to content

Commit 2e796e8

Browse files
committed
Merge branch 'master' into BACK-1341-updates
2 parents b4f1677 + 75edc18 commit 2e796e8

File tree

22 files changed

+1039
-55
lines changed

22 files changed

+1039
-55
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,14 @@ Managing a K8s cluster can be very challenging, and even more so when using one
116116

117117
By using our Tilt setup, developers can very easily run a live-reloading instance of any of our frontend or backend services without needing to directly use or understand Helm or Kubernetes. All that's needed is uncommenting a couple of lines in a `Tiltconfig.yaml` file, and updating the local paths to where the developer has checked out the respective git repo, if different than the default defined in the config.
118118

119-
**IMPORTANT NOTE:** We currently run against version `v0.30.5` of Tilt, so be sure to install the correct version when following the [Tilt Installation Instructions](https://docs.tilt.dev/install.html#alternative-installation).
119+
**IMPORTANT NOTE:** We currently run against version `v0.33.5` of Tilt, so be sure to install the correct version when following the [Tilt Installation Instructions](https://docs.tilt.dev/install.html#alternative-installation).
120120

121121
```bash
122122
# MacOS
123-
curl -fsSL https://github.com/windmilleng/tilt/releases/download/v0.30.5/tilt.0.30.5.mac.x86_64.tar.gz | tar -xzv tilt && sudo mv tilt /usr/local/bin/tilt
123+
curl -fsSL https://github.com/windmilleng/tilt/releases/download/v0.33.5/tilt.0.33.5.mac.x86_64.tar.gz | tar -xzv tilt && sudo mv tilt /usr/local/bin/tilt
124124

125125
# Linux
126-
curl -fsSL https://github.com/windmilleng/tilt/releases/download/v0.30.5/tilt.0.30.5.linux.x86_64.tar.gz | tar -xzv tilt && sudo mv tilt /usr/local/bin/tilt
126+
curl -fsSL https://github.com/windmilleng/tilt/releases/download/v0.33.5/tilt.0.33.5.linux.x86_64.tar.gz | tar -xzv tilt && sudo mv tilt /usr/local/bin/tilt
127127
```
128128

129129
After installing Tilt, you can verify the correct version by typing `tilt version` in your terminal.
@@ -142,7 +142,7 @@ This config will provision and start up the Kubernetes server, and a private doc
142142

143143
## Install glooctl
144144

145-
We provision the Gloo gateway, which is responsible for service routing, using glooctl. Please follow the [glooctl Installation Instructions](https://docs.solo.io/gloo-edge/master/installation/glooctl_setup/).
145+
We provision the Gloo gateway, which is responsible for service routing, using glooctl. Please follow the [glooctl Installation Instructions](https://docs.solo.io/gloo-edge/latest/installation/preparation/#glooctl).
146146

147147
Once installed, you can provision the kubernetes stack with `glooctl`, using the `Glooconfig.yaml` configuration provided at the root of this repo.
148148

@@ -166,7 +166,7 @@ yum install nc
166166
dnf install nc
167167

168168
# Debian/Ubuntu
169-
sudo apt-get install Netcat
169+
sudo apt-get install netcat-openbsd # or netcat-traditional
170170
```
171171

172172
After installing Netcat, you can verify it's working by typing `nc -h` in your terminal.
@@ -516,7 +516,7 @@ dexcom:
516516
StateSalt: "<some-text>"
517517
```
518518
519-
NOTES:
519+
NOTES:
520520
- ensure that in the dexcom developer setup the redirect URI is set correctly, for example if running locally `http://localhost:31500/v1/oauth/dexcom/redirect`
521521

522522
- you will need to restart the tidepool services for the config changes to take effect

bin/tidepool

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ server_init() {
7474
check_docker_running
7575

7676
cd ${DIR} && ctlptl apply -f Kindconfig.yaml
77+
cd ${DIR} && glooctl install gateway -n default --values Glooconfig.yaml
7778
}
7879

7980
server_start() {
@@ -150,7 +151,7 @@ doctor() {
150151
echo "Checking dependancy versions..."
151152
check_version ctlptl 'version' 0.8.5
152153
check_version helm 'version --short' 3.9.1
153-
check_version tilt 'version' 0.30.5
154+
check_version tilt 'version' 0.33.5
154155
check_version docker '-v' 20.10.17
155156
check_version kubectl 'version --client --short' 1.21.12
156157
check_version $MONGODB_SHELL '--eval "db.version()"' 5.0.0
@@ -216,7 +217,7 @@ case ${1-help} in
216217
port-forward) (cd ${DIR} && kubectl port-forward svc/${2} ${3});;
217218
verify-account-email) $MONGODB_SHELL --eval "db.users.update({username: \"${@:2}\"},{\$set:{\"authenticated\":true}});" user;;
218219
restart-gateway) restart gloo gateway-proxy gateway discovery;;
219-
restart-kafka) restart default-kafka-connect-mongo-connect kafka-entity-operator strimzi-cluster-operator;;
220+
restart-kafka) restart default-kafka-connect-mongo-connect kafka-entity-operator;;
220221
doctor) doctor;;
221222
*) usage;;
222223
esac

charts/tidepool/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
description: A Helm chart for Tidepool
33
name: tidepool
4-
version: 0.15.8
4+
version: 0.15.10
55
maintainers:
66
- name: Todd Kazakov
77

charts/tidepool/README.md

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -14,48 +14,48 @@ A Helm chart for Tidepool
1414

1515
## Values
1616

17-
| Key | Type | Default | Description |
18-
|-----|------|---------|-------------|
19-
| global.fullnameOverride | string | `""` | |
20-
| global.gateway.default.apiHost | string | `""` | host to use for API calls |
21-
| global.gateway.default.appHost | string | `""` | host to use for front end calls |
22-
| global.gateway.default.domain | string | `""` | domain to use for cookies |
23-
| global.gateway.default.host | string | `"localhost"` | hostname of web service |
24-
| global.gateway.default.protocol | string | `"http"` | scheme to use for web service |
17+
| Key | Type | Default | Description |
18+
|-----|------|-------------------|-------------|
19+
| global.fullnameOverride | string | `""` | |
20+
| global.gateway.default.apiHost | string | `""` | host to use for API calls |
21+
| global.gateway.default.appHost | string | `""` | host to use for front end calls |
22+
| global.gateway.default.domain | string | `""` | domain to use for cookies |
23+
| global.gateway.default.host | string | `"localhost"` | hostname of web service |
24+
| global.gateway.default.protocol | string | `"http"` | scheme to use for web service |
2525
| global.gateway.proxy.name | string | `"gateway-proxy"` | |
26-
| global.gateway.proxy.namespace | string | `"gloo-system"` | |
27-
| global.glooingress.enabled | bool | `true` | whether to use Gloo API Gateway for ingress |
28-
| global.glooingress.extauth.enabled | bool | `false` | |
29-
| global.linkerdsupport.enabled | bool | `true` | whether to include linkerdsupport subchart with Linkerd service profiles |
30-
| global.logLevel | string | `"info"` | the default log level for all services |
31-
| global.maxTimeout | string | `"120s"` | maximum timeout for any web request |
32-
| global.nameOverride | string | `""` | if non-empty, Helm chart name to use |
33-
| global.ports.auth | int | `9222` | auth service internal port |
34-
| global.ports.blip | int | `3000` | blip service internal port |
35-
| global.ports.blob | int | `9225` | blob service internal port |
36-
| global.ports.data | int | `9220` | data service internal port |
37-
| global.ports.devices_grpc | int | `9228` | devices service grpc internal port |
38-
| global.ports.devices_http | int | `9229` | devices service http internal port |
39-
| global.ports.export | int | `9300` | export service internal port |
40-
| global.ports.gatekeeper | int | `9123` | gatekeeper service internal port |
41-
| global.ports.highwater | int | `9191` | highwater service internal port |
42-
| global.ports.hydrophone | int | `9157` | hydrophone service internal port |
43-
| global.ports.jellyfish | int | `9122` | jellyfish service internal port |
44-
| global.ports.messageapi | int | `9119` | messageapi service internal port |
45-
| global.ports.prescription | int | `9227` | prescription service internal port |
46-
| global.ports.seagull | int | `9120` | seagull service internal port |
47-
| global.ports.shoreline | int | `9107` | shoreline service internal port |
48-
| global.ports.summary | int | `9230` | summary service internal port |
49-
| global.ports.task | int | `9224` | task service internal port |
50-
| global.ports.tidewhisperer | int | `9127` | tidewhisperer service internal port |
51-
| global.region | string | `"us-west-2"` | aws region that services run in |
52-
| global.secret.enabled | bool | `false` | |
53-
| global.secret.generated | bool | `false` | |
54-
| global.secret.templated | bool | `false` | |
55-
| tidepool.namespace.annotations | object | `{}` | |
56-
| tidepool.namespace.create | bool | `true` | |
57-
| tidepool.tests.enabled | bool | `false` | |
58-
| tidepool.tests.job | string | `"none"` | |
26+
| global.gateway.proxy.namespace | string | `"gloo-system"` | |
27+
| global.glooingress.enabled | bool | `true` | whether to use Gloo API Gateway for ingress |
28+
| global.glooingress.extauth.enabled | bool | `false` | |
29+
| global.linkerdsupport.enabled | bool | `true` | whether to include linkerdsupport subchart with Linkerd service profiles |
30+
| global.logLevel | string | `"info"` | the default log level for all services |
31+
| global.maxTimeout | string | `"120s"` | maximum timeout for any web request |
32+
| global.nameOverride | string | `""` | if non-empty, Helm chart name to use |
33+
| global.ports.auth | int | `9222` | auth service internal port |
34+
| global.ports.blip | int | `3000` | blip service internal port |
35+
| global.ports.blob | int | `9225` | blob service internal port |
36+
| global.ports.data | int | `9220` | data service internal port |
37+
| global.ports.devices_grpc | int | `9228` | devices service grpc internal port |
38+
| global.ports.devices_http | int | `9229` | devices service http internal port |
39+
| global.ports.export | int | `9301` | export service internal port |
40+
| global.ports.gatekeeper | int | `9123` | gatekeeper service internal port |
41+
| global.ports.highwater | int | `9191` | highwater service internal port |
42+
| global.ports.hydrophone | int | `9157` | hydrophone service internal port |
43+
| global.ports.jellyfish | int | `9122` | jellyfish service internal port |
44+
| global.ports.messageapi | int | `9119` | messageapi service internal port |
45+
| global.ports.prescription | int | `9227` | prescription service internal port |
46+
| global.ports.seagull | int | `9120` | seagull service internal port |
47+
| global.ports.shoreline | int | `9107` | shoreline service internal port |
48+
| global.ports.summary | int | `9230` | summary service internal port |
49+
| global.ports.task | int | `9224` | task service internal port |
50+
| global.ports.tidewhisperer | int | `9127` | tidewhisperer service internal port |
51+
| global.region | string | `"us-west-2"` | aws region that services run in |
52+
| global.secret.enabled | bool | `false` | |
53+
| global.secret.generated | bool | `false` | |
54+
| global.secret.templated | bool | `false` | |
55+
| tidepool.namespace.annotations | object | `{}` | |
56+
| tidepool.namespace.create | bool | `true` | |
57+
| tidepool.tests.enabled | bool | `false` | |
58+
| tidepool.tests.job | string | `"none"` | |
5959

6060
----------------------------------------------
6161
Autogenerated from chart metadata using [helm-docs v1.3.0](https://github.com/norwoodj/helm-docs/releases/v1.3.0)

charts/tidepool/charts/clinic-worker/templates/0-configmap.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ metadata:
88
labels:
99
{{ include "charts.labels.standard" .}}
1010
data:
11+
RedoxClientId: ""
12+
RedoxSourceId: ""
13+
RedoxSourceName: ""
14+
RedoxTestMode: "true"
15+
RedoxEnabled: "false"
1116
KafkaTopicPrefix: {{ .Values.configmap.data.KafkaTopicPrefix | quote }}
1217
KafkaTopic: {{ .Values.configmap.data.KafkaTopic | quote }}
1318
{{- end }}

charts/tidepool/charts/clinic-worker/templates/1-deployment.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,50 @@ spec:
100100
name: "clinic-worker"
101101
key: KafkaTopicPrefix
102102
optional: true
103+
- name: TIDEPOOL_REDOX_KEY_ID
104+
valueFrom:
105+
secretKeyRef:
106+
name: "clinic-worker"
107+
key: RedoxKeyId
108+
optional: true
109+
- name: TIDEPOOL_REDOX_PRIVATE_KEY
110+
valueFrom:
111+
secretKeyRef:
112+
name: "clinic-worker"
113+
key: RedoxPrivateKey
114+
optional: true
115+
- name: TIDEPOOL_REDOX_CLIENT_ID
116+
valueFrom:
117+
configMapKeyRef:
118+
name: "clinic-worker"
119+
key: RedoxClientId
120+
optional: true
121+
- name: TIDEPOOL_REDOX_SOURCE_ID
122+
valueFrom:
123+
configMapKeyRef:
124+
name: "clinic-worker"
125+
key: RedoxSourceId
126+
optional: true
127+
- name: TIDEPOOL_REDOX_SOURCE_NAME
128+
valueFrom:
129+
configMapKeyRef:
130+
name: "clinic-worker"
131+
key: RedoxSourceName
132+
optional: true
133+
- name: TIDEPOOL_REDOX_TEST_MODE
134+
valueFrom:
135+
configMapKeyRef:
136+
name: "clinic-worker"
137+
key: RedoxTestMode
138+
optional: true
139+
- name: TIDEPOOL_REDOX_ENABLED
140+
valueFrom:
141+
configMapKeyRef:
142+
name: "clinic-worker"
143+
key: RedoxEnabled
144+
optional: true
145+
- name: TIDEPOOL_EXPORT_CLIENT_ADDRESS
146+
value: "http://export:{{.Values.global.ports.export}}"
103147
image: "{{ .Values.deployment.image }}"
104148
securityContext:
105149
{{- .Values.podSecurityContext | toYaml | nindent 10 }}

charts/tidepool/charts/clinic/templates/1-deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ spec:
6363
value: "http://gatekeeper:{{.Values.global.ports.gatekeeper}}"
6464
- name: TIDEPOOL_CONFIRMATION_CLIENT_ADDRESS
6565
value: "http://hydrophone:{{.Values.global.ports.hydrophone}}"
66+
- name: TIDEPOOL_REDOX_VERIFICATION_TOKEN
67+
valueFrom:
68+
secretKeyRef:
69+
name: clinic
70+
key: RedoxVerificationToken
71+
optional: true
6672
image: "{{ .Values.deployment.image }}"
6773
securityContext:
6874
{{- .Values.podSecurityContext | toYaml | nindent 10 }}

charts/tidepool/charts/clinic/templates/4-routetable.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,16 @@ spec:
5454
upstream:
5555
name: clinic
5656
namespace: {{ .Release.Namespace }}
57+
- matchers:
58+
- methods:
59+
- POST
60+
prefix: /v1/redox
61+
routeAction:
62+
single:
63+
upstream:
64+
name: clinic
65+
namespace: {{ .Release.Namespace }}
66+
options:
67+
prefixRewrite: {{ if not .Values.redox.verify }}/v1/redox{{ else }}/v1/redox/verify{{ end }}
5768
weight: 30
5869
{{- end }}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{{ if .Values.global.kafka.connect.enabled }}
2+
apiVersion: kafka.strimzi.io/v1beta2
3+
kind: KafkaConnector
4+
metadata:
5+
labels:
6+
app: redox-scheduled-reports-source
7+
strimzi.io/cluster: {{ .Release.Namespace }}-{{ .Values.global.kafka.connect.clusterName }}
8+
name: redox-scheduled-reports-source
9+
namespace: {{ .Release.Namespace }}
10+
spec:
11+
class: com.mongodb.kafka.connect.MongoSourceConnector
12+
config:
13+
change.stream.full.document: updateLookup
14+
collection: scheduledSummaryAndReportsOrders
15+
connection.uri: {{ .Values.global.kafka.connect.mongoConnectionUri }}
16+
copy.existing: true
17+
database: clinic
18+
topic.prefix: {{ .Release.Namespace }}
19+
output.json.formatter: com.mongodb.kafka.connect.source.json.formatter.ExtendedJson
20+
value.converter: org.apache.kafka.connect.storage.StringConverter
21+
key.converter: org.apache.kafka.connect.storage.StringConverter
22+
heartbeat.interval.ms: {{ .Values.global.kafka.connect.mongoHeartbeatIntervalMs }}
23+
heartbeat.topic.name: {{ .Release.Namespace }}-{{ .Values.global.kafka.connect.clusterName }}-heartbeat
24+
tasksMax: {{ .Values.global.kafka.connect.sourceTasksMax | int }}
25+
{{- end }}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{{ if .Values.global.kafka.connect.enabled }}
2+
apiVersion: kafka.strimzi.io/v1beta2
3+
kind: KafkaConnector
4+
metadata:
5+
labels:
6+
app: redox-source
7+
strimzi.io/cluster: {{ .Release.Namespace }}-{{ .Values.global.kafka.connect.clusterName }}
8+
name: redox-source
9+
namespace: {{ .Release.Namespace }}
10+
spec:
11+
class: com.mongodb.kafka.connect.MongoSourceConnector
12+
config:
13+
change.stream.full.document: updateLookup
14+
collection: redox
15+
connection.uri: {{ .Values.global.kafka.connect.mongoConnectionUri }}
16+
copy.existing: true
17+
database: clinic
18+
topic.prefix: {{ .Release.Namespace }}
19+
output.json.formatter: com.mongodb.kafka.connect.source.json.formatter.ExtendedJson
20+
value.converter: org.apache.kafka.connect.storage.StringConverter
21+
key.converter: org.apache.kafka.connect.storage.StringConverter
22+
heartbeat.interval.ms: {{ .Values.global.kafka.connect.mongoHeartbeatIntervalMs }}
23+
heartbeat.topic.name: {{ .Release.Namespace }}-{{ .Values.global.kafka.connect.clusterName }}-heartbeat
24+
tasksMax: {{ .Values.global.kafka.connect.sourceTasksMax | int }}
25+
{{- end }}

0 commit comments

Comments
 (0)