Skip to content

Commit

Permalink
[vrt] make urls configurable (kokuwaio#113)
Browse files Browse the repository at this point in the history
* make urls configurable

Signed-off-by: André Bauer <[email protected]>

* make urls configurable

Signed-off-by: André Bauer <[email protected]>
  • Loading branch information
monotek authored Jul 12, 2022
1 parent 03136ca commit 23ec511
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/visual-regression-tracker/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ home: https://visual-regression-tracker.com
sources:
- https://github.com/Visual-Regression-Tracker/Visual-Regression-Tracker
type: application
version: 0.1.0
version: 0.2.0
appVersion: "4.20.4"
maintainers:
- name: monotek
Expand Down
4 changes: 2 additions & 2 deletions charts/visual-regression-tracker/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ spec:
- name: {{ .Chart.Name }}-api
env:
- name: APP_FRONTEND_URL
value: "http://localhost:8080"
value: "{{ .Values.vrtConfig.appFrontendUrl }}"
- name: BODY_PARSER_JSON_LIMIT
value: "{{ .Values.vrtConfig.bodyParserJsonLimit }}"
{{- if or .Values.vrtConfig.elasticsearch.pass .Values.secrets.elasticsearch.useExisting }}
Expand Down Expand Up @@ -112,7 +112,7 @@ spec:
- name: {{ .Chart.Name }}-ui
env:
- name: REACT_APP_API_URL
value: "http://localhost:3000"
value: "{{ .Values.vrtConfig.reactAppApiUrl }}"
- name: VRT_VERSION
value: "{{ .Chart.AppVersion }}"
securityContext:
Expand Down
2 changes: 2 additions & 0 deletions charts/visual-regression-tracker/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ fullnameOverride: ""
imagePullSecrets: []

vrtConfig:
appFrontendUrl: "http://localhost:8080"
bodyParserJsonLimit: "5mb"
elasticsearch:
# enable/disable elasticsearch chart dependency
Expand All @@ -29,6 +30,7 @@ vrtConfig:
port: 5432
# needs to be the same as the postgresql.postgresqlUsername
user: vrt
reactAppApiUrl: "http://localhost:4200"

# Configuration for persistence
persistence:
Expand Down

0 comments on commit 23ec511

Please sign in to comment.