[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
This commit is contained in:
parent
28c27efe43
commit
eb0d55ea49
|
|
@ -44,7 +44,7 @@ spec:
|
||||||
{{- range .paths }}
|
{{- range .paths }}
|
||||||
- path: {{ . }}
|
- path: {{ . }}
|
||||||
{{ if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion -}}
|
{{ if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion -}}
|
||||||
pathType: ImplementationSpecific
|
pathType: Prefix
|
||||||
backend:
|
backend:
|
||||||
service:
|
service:
|
||||||
name: {{ $fullName }}
|
name: {{ $fullName }}
|
||||||
|
|
|
||||||
|
|
@ -82,6 +82,8 @@ extraEnvs:
|
||||||
# key: AWS_DEFAULT_REGION
|
# key: AWS_DEFAULT_REGION
|
||||||
# - name: SPILO_S3_BACKUP_BUCKET
|
# - name: SPILO_S3_BACKUP_BUCKET
|
||||||
# value: <s3 bucket used by the operator>
|
# value: <s3 bucket used by the operator>
|
||||||
|
# - name: "USE_AWS_INSTANCE_PROFILE"
|
||||||
|
# value: "true"
|
||||||
|
|
||||||
# configure UI service
|
# configure UI service
|
||||||
service:
|
service:
|
||||||
|
|
@ -103,7 +105,7 @@ ingress:
|
||||||
ingressClassName: ""
|
ingressClassName: ""
|
||||||
hosts:
|
hosts:
|
||||||
- host: ui.example.org
|
- host: ui.example.org
|
||||||
paths: [""]
|
paths: ["/"]
|
||||||
tls: []
|
tls: []
|
||||||
# - secretName: ui-tls
|
# - secretName: ui-tls
|
||||||
# hosts:
|
# hosts:
|
||||||
|
|
|
||||||
|
|
@ -101,3 +101,5 @@ spec:
|
||||||
# key: AWS_DEFAULT_REGION
|
# key: AWS_DEFAULT_REGION
|
||||||
# - name: SPILO_S3_BACKUP_BUCKET
|
# - name: SPILO_S3_BACKUP_BUCKET
|
||||||
# value: <s3 bucket used by the operator>
|
# value: <s3 bucket used by the operator>
|
||||||
|
# - name: "USE_AWS_INSTANCE_PROFILE"
|
||||||
|
# value: "true"
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ spec:
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
pathType: ImplementationSpecific
|
pathType: Prefix
|
||||||
backend:
|
backend:
|
||||||
service:
|
service:
|
||||||
name: "postgres-operator-ui"
|
name: "postgres-operator-ui"
|
||||||
|
|
|
||||||
|
|
@ -311,7 +311,7 @@ def send_js(path):
|
||||||
@app.route('/')
|
@app.route('/')
|
||||||
@authorize
|
@authorize
|
||||||
def index():
|
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 = {
|
DEFAULT_UI_CONFIG = {
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<base href="{{app_url}}">
|
|
||||||
<title>PostgreSQL Operator UI</title>
|
<title>PostgreSQL Operator UI</title>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue