Skip to content

Commit

Permalink
[UI] revert index.html base url and provide USE_AWS_INSTANCE_PROFILE …
Browse files Browse the repository at this point in the history
…example (#2403)

* revert index.html base url and provide USE_AWS_INSTANCE_PROFILE example
  • Loading branch information
FxKu authored Sep 4, 2023
1 parent 28c27ef commit eb0d55e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/postgres-operator-ui/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ spec:
{{- range .paths }}
- path: {{ . }}
{{ if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion -}}
pathType: ImplementationSpecific
pathType: Prefix
backend:
service:
name: {{ $fullName }}
Expand Down
4 changes: 3 additions & 1 deletion charts/postgres-operator-ui/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -103,7 +105,7 @@ ingress:
ingressClassName: ""
hosts:
- host: ui.example.org
paths: [""]
paths: ["/"]
tls: []
# - secretName: ui-tls
# hosts:
Expand Down
2 changes: 2 additions & 0 deletions ui/manifests/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion ui/manifests/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
http:
paths:
- path: /
pathType: ImplementationSpecific
pathType: Prefix
backend:
service:
name: "postgres-operator-ui"
Expand Down
2 changes: 1 addition & 1 deletion ui/operator_ui/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
1 change: 0 additions & 1 deletion ui/operator_ui/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<html lang="en">
<head>
<meta charset="utf-8">
<base href="{{app_url}}">
<title>PostgreSQL Operator UI</title>


Expand Down

0 comments on commit eb0d55e

Please sign in to comment.