Skip to content

Commit

Permalink
Specify API url
Browse files Browse the repository at this point in the history
  • Loading branch information
JessieAMorris committed Dec 6, 2024
1 parent 4ebd513 commit b23027c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/philter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.6
version: 0.1.7

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
5 changes: 4 additions & 1 deletion charts/philter/templates/philter-ui/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- $defaultApiEndpoint := printf "http://%s:%.f" (include "philter.apiFullname" $) .Values.api.service.port }}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -36,8 +37,10 @@ spec:
{{- toYaml .Values.ui.securityContext | nindent 12 }}
image: "{{ .Values.ui.image.repository }}:{{ .Values.ui.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.ui.image.pullPolicy }}
{{- with .Values.ui.env }}
env:
- name: PHILTER_ENDPOINT
value: "{{ .Values.ui.apiEndpointOverride | default $defaultApiEndpoint }}"
{{- with .Values.ui.env }}
{{- toYaml . | nindent 12 }}
{{- end }}
ports:
Expand Down
2 changes: 2 additions & 0 deletions charts/philter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ ui:

env: []

apiEndpointOverride:

service:
type: ClusterIP
port: 9000
Expand Down

0 comments on commit b23027c

Please sign in to comment.