Skip to content

Commit 64d6b02

Browse files
authored
Merge pull request #513 from uc-cdis/chore/add_env_variables_to_ff
Add Datadog ENV variables to frontend-framework chart
2 parents 9ec75a3 + 644bf04 commit 64d6b02

File tree

5 files changed

+23
-16
lines changed

5 files changed

+23
-16
lines changed

helm/frontend-framework/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.1.22
18+
version: 0.1.23
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to
@@ -25,5 +25,5 @@ appVersion: "develop"
2525

2626
dependencies:
2727
- name: common
28-
version: 0.1.31
28+
version: 0.1.34
2929
repository: file://../common

helm/frontend-framework/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frontend-framework
22

3-
![Version: 0.1.22](https://img.shields.io/badge/Version-0.1.22-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: develop](https://img.shields.io/badge/AppVersion-develop-informational?style=flat-square)
3+
![Version: 0.1.23](https://img.shields.io/badge/Version-0.1.23-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: develop](https://img.shields.io/badge/AppVersion-develop-informational?style=flat-square)
44

55
A Helm chart for the gen3 frontend framework
66

helm/frontend-framework/templates/deployment.yaml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,21 +60,22 @@ spec:
6060
- /bin/sh
6161
- -c
6262
- |
63+
echo "Starting config puller"
6364
mkdir -p /tmp/repo
6465
cd /tmp/repo
6566
# Clone with sparse checkout and filter
66-
git clone --depth 1 ${GIT_REPO} siteconfig
67-
cd siteconfig
68-
69-
# Fetch the branch
70-
git fetch origin ${GIT_BRANCH}:config_branch
71-
git switch config_branch
67+
echo "Starting config puller"
68+
git clone --depth 1 --branch ${GIT_BRANCH} --filter=blob:none --sparse ${GIT_REPO} /tmp/repo
69+
cd /tmp/repo
70+
git sparse-checkout set ${CONFIG_DIR}
71+
echo "Done cloning config"
7272
{{- if .Values.customConfig.dir }}
73-
cp -r /tmp/repo/siteconfig/{{ .Values.customConfig.dir }}/config/* /gen3/config
74-
cp -r /tmp/repo/siteconfig/{{ .Values.customConfig.dir }}/public/* /gen3/public
73+
cp -r /tmp/repo/{{ .Values.customConfig.dir }}/config/* /gen3/config
74+
cp -r /tmp/repo/{{ .Values.customConfig.dir }}/public/* /gen3/public
7575
{{- else }}
76-
cp -r /tmp/repo/siteconfig/config/* /gen3/config
77-
cp -r /tmp/repo/siteconfig/public/* /gen3/public
76+
cp -r /tmp/repo/config/* /gen3/config
77+
cp -r /tmp/repo/public/* /gen3/public
78+
echo "Done copying config"
7879
{{- end }}
7980
volumeMounts:
8081
- name: config-volume
@@ -131,6 +132,12 @@ spec:
131132
value: /portal
132133
{{- end }}
133134
{{- if .Values.customConfig.enabled }}
135+
- name: DATADOG_APPLICATION_ID
136+
value: {{ .Values.env.DATADOG_APPLICATION_ID | quote }}
137+
- name: DATADOG_CLIENT_TOKEN
138+
value: {{ .Values.env.DATADOG_CLIENT_TOKEN | quote }}
139+
- name: DATACOMMONS
140+
value: {{ .Values.env.DATACOMMONS | quote }}
134141
volumeMounts:
135142
- name: config-volume
136143
mountPath: /gen3/config

helm/gen3/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ dependencies:
6060
repository: file://../etl
6161
condition: etl.enabled
6262
- name: frontend-framework
63-
version: 0.1.22
63+
version: 0.1.23
6464
repository: "file://../frontend-framework"
6565
condition: frontend-framework.enabled
6666
- name: fence
@@ -193,7 +193,7 @@ type: application
193193
# to the chart and its templates, including the app version.
194194
# Versions are expected to follow Semantic Versioning (https://semver.org/)
195195

196-
version: 0.3.19
196+
version: 0.3.20
197197

198198
# This is the version number of the application being deployed. This version number should be
199199
# incremented each time you make changes to the application. Versions are not expected to

helm/gen3/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# gen3
22

3-
![Version: 0.3.19](https://img.shields.io/badge/Version-0.3.18-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: master](https://img.shields.io/badge/AppVersion-master-informational?style=flat-square)
3+
![Version: 0.3.20](https://img.shields.io/badge/Version-0.3.18-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: master](https://img.shields.io/badge/AppVersion-master-informational?style=flat-square)
44

55
Helm chart to deploy Gen3 Data Commons
66

0 commit comments

Comments
 (0)