diff --git a/charts/postgres-operator-ui/templates/ingress.yaml b/charts/postgres-operator-ui/templates/ingress.yaml index 37b47a6c5..75bf79090 100644 --- a/charts/postgres-operator-ui/templates/ingress.yaml +++ b/charts/postgres-operator-ui/templates/ingress.yaml @@ -44,7 +44,7 @@ spec: {{- range .paths }} - path: {{ . }} {{ if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion -}} - pathType: ImplementationSpecific + pathType: Prefix backend: service: name: {{ $fullName }} diff --git a/charts/postgres-operator-ui/values.yaml b/charts/postgres-operator-ui/values.yaml index ab4a245ad..e23a434aa 100644 --- a/charts/postgres-operator-ui/values.yaml +++ b/charts/postgres-operator-ui/values.yaml @@ -82,6 +82,8 @@ extraEnvs: # key: AWS_DEFAULT_REGION # - name: SPILO_S3_BACKUP_BUCKET # value: + # - 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: diff --git a/ui/manifests/deployment.yaml b/ui/manifests/deployment.yaml index 15cf36c45..abbf06e25 100644 --- a/ui/manifests/deployment.yaml +++ b/ui/manifests/deployment.yaml @@ -101,3 +101,5 @@ spec: # key: AWS_DEFAULT_REGION # - name: SPILO_S3_BACKUP_BUCKET # value: + # - name: "USE_AWS_INSTANCE_PROFILE" + # value: "true" diff --git a/ui/manifests/ingress.yaml b/ui/manifests/ingress.yaml index 53be1f45b..3d721b9b6 100644 --- a/ui/manifests/ingress.yaml +++ b/ui/manifests/ingress.yaml @@ -12,7 +12,7 @@ spec: http: paths: - path: / - pathType: ImplementationSpecific + pathType: Prefix backend: service: name: "postgres-operator-ui" diff --git a/ui/operator_ui/main.py b/ui/operator_ui/main.py index bec441dca..0399f14f8 100644 --- a/ui/operator_ui/main.py +++ b/ui/operator_ui/main.py @@ -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 = { diff --git a/ui/operator_ui/templates/index.html b/ui/operator_ui/templates/index.html index 021c5c75d..7307c8a3a 100644 --- a/ui/operator_ui/templates/index.html +++ b/ui/operator_ui/templates/index.html @@ -2,7 +2,6 @@ - PostgreSQL Operator UI