Skip to content
Snippets Groups Projects
Unverified Commit eb0d55ea authored by Felix Kunde's avatar Felix Kunde Committed by GitHub
Browse files

[UI] revert index.html base url and provide USE_AWS_INSTANCE_PROFILE example (#2403)

* revert index.html base url and provide USE_AWS_INSTANCE_PROFILE example
parent 28c27efe
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,7 @@ spec:
{{- range .paths }}
- path: {{ . }}
{{ if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion -}}
pathType: ImplementationSpecific
pathType: Prefix
backend:
service:
name: {{ $fullName }}
......
......@@ -82,6 +82,8 @@ extraEnvs:
# key: AWS_DEFAULT_REGION
# - name: SPILO_S3_BACKUP_BUCKET
# value: <s3 bucket used by the operator>
# - name: "USE_AWS_INSTANCE_PROFILE"
# value: "true"
# configure UI service
service:
......@@ -103,7 +105,7 @@ ingress:
ingressClassName: ""
hosts:
- host: ui.example.org
paths: [""]
paths: ["/"]
tls: []
# - secretName: ui-tls
# hosts:
......
......@@ -101,3 +101,5 @@ spec:
# key: AWS_DEFAULT_REGION
# - name: SPILO_S3_BACKUP_BUCKET
# value: <s3 bucket used by the operator>
# - name: "USE_AWS_INSTANCE_PROFILE"
# value: "true"
......@@ -12,7 +12,7 @@ spec:
http:
paths:
- path: /
pathType: ImplementationSpecific
pathType: Prefix
backend:
service:
name: "postgres-operator-ui"
......
......@@ -311,7 +311,7 @@ def send_js(path):
@app.route('/')
@authorize
def index():
return render_template('index.html', google_analytics=GOOGLE_ANALYTICS, app_url=APP_URL)
return render_template('index.html', google_analytics=GOOGLE_ANALYTICS)
DEFAULT_UI_CONFIG = {
......
......@@ -2,7 +2,6 @@
<html lang="en">
<head>
<meta charset="utf-8">
<base href="{{app_url}}">
<title>PostgreSQL Operator UI</title>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment