Skip to content

Commit

Permalink
sets env vars properly for production deployment of the registry view…
Browse files Browse the repository at this point in the history
…er in helm chart deployment template. (#160)

Signed-off-by: Michael Valdron <mvaldron@redhat.com>
  • Loading branch information
michael-valdron committed Feb 6, 2023
1 parent 4de4dad commit 785a498
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions deploy/chart/devfile-registry/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ spec:
name: {{ template "devfileregistry.fullname" . }}
items:
- key: .env.registry-viewer
path: .env.local
path: .env.production
containers:
- image: "{{ .Values.devfileIndex.image }}:{{ .Values.devfileIndex.tag }}"
imagePullPolicy: {{ .Values.devfileIndex.imagePullPolicy }}
Expand Down Expand Up @@ -133,10 +133,22 @@ spec:
memory: {{ .Values.registryViewer.memoryLimit }}
requests:
memory: 64Mi
env:
- name: ANALYTICS_WRITE_KEY
value: {{ .Values.telemetry.registryViewerWriteKey }}
- name: DEVFILE_REGISTRIES
value: |
[
{
"name": "Community",
"url": "http://localhost:8080",
"fqdn": "http://{{ .Release.Name }}-{{ .Release.Namespace }}.{{ .Values.global.ingress.domain }}"
}
]
volumeMounts:
- name: viewer-env-file
mountPath: /app/apps/registry-viewer/.env.local
subPath: .env.local
mountPath: /app/.env.production
subPath: .env.production
readOnly: true
securityContext:
allowPrivilegeEscalation: false
Expand Down

0 comments on commit 785a498

Please sign in to comment.