Skip to content

Commit eb0d55e

Browse files
authored
[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
1 parent 28c27ef commit eb0d55e

File tree

6 files changed

+8
-5
lines changed

6 files changed

+8
-5
lines changed

charts/postgres-operator-ui/templates/ingress.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ spec:
4444
{{- range .paths }}
4545
- path: {{ . }}
4646
{{ if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion -}}
47-
pathType: ImplementationSpecific
47+
pathType: Prefix
4848
backend:
4949
service:
5050
name: {{ $fullName }}

charts/postgres-operator-ui/values.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ extraEnvs:
8282
# key: AWS_DEFAULT_REGION
8383
# - name: SPILO_S3_BACKUP_BUCKET
8484
# value: <s3 bucket used by the operator>
85+
# - name: "USE_AWS_INSTANCE_PROFILE"
86+
# value: "true"
8587

8688
# configure UI service
8789
service:
@@ -103,7 +105,7 @@ ingress:
103105
ingressClassName: ""
104106
hosts:
105107
- host: ui.example.org
106-
paths: [""]
108+
paths: ["/"]
107109
tls: []
108110
# - secretName: ui-tls
109111
# hosts:

ui/manifests/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,5 @@ spec:
101101
# key: AWS_DEFAULT_REGION
102102
# - name: SPILO_S3_BACKUP_BUCKET
103103
# value: <s3 bucket used by the operator>
104+
# - name: "USE_AWS_INSTANCE_PROFILE"
105+
# value: "true"

ui/manifests/ingress.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ spec:
1212
http:
1313
paths:
1414
- path: /
15-
pathType: ImplementationSpecific
15+
pathType: Prefix
1616
backend:
1717
service:
1818
name: "postgres-operator-ui"

ui/operator_ui/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ def send_js(path):
311311
@app.route('/')
312312
@authorize
313313
def index():
314-
return render_template('index.html', google_analytics=GOOGLE_ANALYTICS, app_url=APP_URL)
314+
return render_template('index.html', google_analytics=GOOGLE_ANALYTICS)
315315

316316

317317
DEFAULT_UI_CONFIG = {

ui/operator_ui/templates/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8">
5-
<base href="{{app_url}}">
65
<title>PostgreSQL Operator UI</title>
76

87

0 commit comments

Comments
 (0)