From d17307775a95a122255906087dc1dfc38d329222 Mon Sep 17 00:00:00 2001 From: Frank Kloeker Date: Thu, 5 Oct 2023 22:48:34 +0200 Subject: [PATCH] set sub_filter_once on to prevent 404 on Grafana navigation (#19) --- Chart.yaml | 2 +- templates/grafana-nginx-config.yaml | 4 ++-- values.yaml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Chart.yaml b/Chart.yaml index 82d778c..f41bdbc 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -5,7 +5,7 @@ annotations: catalog.cattle.io/requests-memory: 1000Mi name: caas-project-monitoring description: A Helm chart for Rancher Project Monitoring V3 -version: 1.1.0 +version: 1.2.0 appVersion: "51.0.3" icon: https://raw.githubusercontent.com/caas-team/caas-project-monitoring/main/logo.png keywords: diff --git a/templates/grafana-nginx-config.yaml b/templates/grafana-nginx-config.yaml index e19893a..2ccb7f8 100644 --- a/templates/grafana-nginx-config.yaml +++ b/templates/grafana-nginx-config.yaml @@ -54,7 +54,7 @@ data: proxy_pass http://localhost:3000; sub_filter_types application/json; - sub_filter_once off; + sub_filter_once on; sub_filter '"url":"/d' '"url":"d'; } @@ -77,7 +77,7 @@ data: proxy_pass http://localhost:3000/; - sub_filter_once off; + sub_filter_once on; {{- if not (empty .Values.global.cattle.clusterId) }} sub_filter '"appSubUrl":""' '"appSubUrl":"/k8s/clusters/{{ .Values.global.cattle.clusterId }}/api/v1/namespaces/{{ $releasenamespace }}/services/http:project-monitoring-grafana:80/proxy"'; {{- else }} diff --git a/values.yaml b/values.yaml index 3934603..5a213c7 100644 --- a/values.yaml +++ b/values.yaml @@ -530,7 +530,7 @@ kube-prometheus-stack: level: info image: repository: mtr.devops.telekom.de/kubeprometheusstack/grafana - tag: 9.1.5 + tag: 10.1.4 namespaceOverride: "" nameOverride: project-monitoring-grafana rbac: