@@ -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
0 commit comments