From 962e58c602959d0f39f63afa67dbd4d97ff727a3 Mon Sep 17 00:00:00 2001 From: Jesse Goodier <31039225+jessegoodier@users.noreply.github.com> Date: Tue, 13 Jun 2023 11:16:33 -0400 Subject: [PATCH] option to disable trends (#2331) --- .../cost-analyzer-frontend-config-map-template.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cost-analyzer/templates/cost-analyzer-frontend-config-map-template.yaml b/cost-analyzer/templates/cost-analyzer-frontend-config-map-template.yaml index 4bad7aff6..a40f118be 100755 --- a/cost-analyzer/templates/cost-analyzer-frontend-config-map-template.yaml +++ b/cost-analyzer/templates/cost-analyzer-frontend-config-map-template.yaml @@ -317,5 +317,10 @@ data: proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } {{- end }} + {{- if .Values.kubecostFrontend.trendsDisabled }} + location /model/allocation/trends { + return 204 'endpoint disabled'; + } + {{ end }} } {{- end }}