@@ -49,6 +49,12 @@ objects:
4949 items :
5050 - key : registry-config.yml
5151 path : config.yml
52+ - name : viewer-env-file
53+ configMap :
54+ name : devfile-registry
55+ items :
56+ - key : .env.registry-viewer
57+ path : .env.local
5258 containers :
5359 - image : ${DEVFILE_INDEX_IMAGE}:${IMAGE_TAG}
5460 imagePullPolicy : " ${DEVFILE_INDEX_PULL_POLICY}"
@@ -121,16 +127,10 @@ objects:
121127 limits :
122128 cpu : 250m
123129 memory : ${REGISTRY_VIEWER_MEMORY_LIMIT}
124- env :
125- - name : NEXT_PUBLIC_BASE_PATH
126- value : " /viewer"
127- - name : NEXT_PUBLIC_DEVFILE_REGISTRIES
128- valueFrom :
129- configMapKeyRef :
130- name : devfile-registry
131- key : devfile-registry-hosts.json
132- - name : NEXT_PUBLIC_ANALYTICS_WRITE_KEY
133- value : ${ANALYTICS_WRITE_KEY}
130+ volumeMounts :
131+ - name : viewer-env-file
132+ mountPath : /app/apps/registry-viewer/.env.local
133+ subPath : .env.local
134134 - image : ${OCI_REGISTRY_IMAGE}:${OCI_REGISTRY_IMAGE_TAG}
135135 imagePullPolicy : " ${OCI_REGISTRY_PULL_POLICY}"
136136 name : oci-registry
@@ -211,14 +211,10 @@ objects:
211211 enabled: true
212212 path: /metrics
213213
214- devfile-registry-hosts.json : |
215- [
216- {
217- "name": "Community",
218- "url": "http://localhost:8080",
219- "fqdn": "${REGISTRY_HOST_ALIAS}"
220- }
221- ]
214+ .env.registry-viewer : |
215+ ANALYTICS_WRITE_KEY=${ANALYTICS_WRITE_KEY}
216+ DEVFILE_REGISTRIES=[{"name":"Community","url":"http://localhost:8080","fqdn":"${REGISTRY_HOST_ALIAS}"}]
217+
222218 - apiVersion : v1
223219 kind : ServiceAccount
224220 metadata :
0 commit comments