File tree Expand file tree Collapse file tree 4 files changed +4
-2
lines changed
charts/postgres-operator-ui Expand file tree Collapse file tree 4 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 4646 {{- toYaml .Values.resources | nindent 12 }}
4747 env :
4848 - name : " APP_URL"
49- value : " http://localhost:8081 "
49+ value : {{ .Values.envs.appUrl }}
5050 - name : " OPERATOR_API_URL"
5151 value : {{ .Values.envs.operatorApiUrl | quote }}
5252 - name : " OPERATOR_CLUSTER_NAME_LABEL"
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ resources:
4141envs :
4242 # IMPORTANT: While operator chart and UI chart are independent, this is the interface between
4343 # UI and operator API. Insert the service name of the operator API here!
44+ appUrl : " http://localhost:8081"
4445 operatorApiUrl : " http://postgres-operator:8080"
4546 operatorClusterNameLabel : " cluster-name"
4647 resourcesVisible : " False"
Original file line number Diff line number Diff line change @@ -311,7 +311,7 @@ def send_js(path):
311311@app .route ('/' )
312312@authorize
313313def index ():
314- return render_template ('index.html' , google_analytics = GOOGLE_ANALYTICS )
314+ return render_template ('index.html' , google_analytics = GOOGLE_ANALYTICS , app_url = APP_URL )
315315
316316
317317DEFAULT_UI_CONFIG = {
Original file line number Diff line number Diff line change 22< html lang ="en ">
33 < head >
44 < meta charset ="utf-8 ">
5+ < base href ="{{app_url}} ">
56 < title > PostgreSQL Operator UI</ title >
67
78
You can’t perform that action at this time.
0 commit comments