Skip to content

Commit

Permalink
Add django api url
Browse files Browse the repository at this point in the history
  • Loading branch information
zak-nuccio committed Feb 15, 2024
1 parent 81ad0ca commit 526ff0b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
11 changes: 11 additions & 0 deletions templates/ui-configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: "{{ template "spade.name" . }}-ui-env"
labels:
app: "{{ template "spade.name" . }}-ui"
data:
VITE_BACKEND_BASE_URL: "{{ .Values.spade.django.apiUrl }}"
{{- range $setting, $option := .Values.environment }}
{{ $setting }}: "{{ $option }}"
{{- end }}
2 changes: 1 addition & 1 deletion templates/ui-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
template:
metadata:
annotations:
checksum/spade-configmap: {{ include (print $.Template.BasePath "/django-configmap.yaml") . | sha256sum }}
checksum/spade-configmap: {{ include (print $.Template.BasePath "/ui-configmap.yaml") . | sha256sum }}
labels:
app: {{ template "spade.name" . }}
component: "{{ template "spade.name" . }}-ui"
Expand Down
1 change: 1 addition & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ docker:

spade:
django:
apiUrl: https://backend/api/v1
allowedHosts: backend
adminUrl: admin/
collectFastStrategy: collectfast.strategies.filesystem.FileSystemStrategy
Expand Down

0 comments on commit 526ff0b

Please sign in to comment.