From c33a446f00206da3d6a96364022082c2fe1baf73 Mon Sep 17 00:00:00 2001 From: Jiffs Maverick Date: Mon, 30 Dec 2024 22:40:03 +0100 Subject: [PATCH] feat(helm): Add path support for ingress in the helm chart (#672) --- helm/Chart.yaml | 2 +- helm/README.md | 3 ++- helm/templates/ingress.yaml | 2 +- helm/values.yaml | 2 ++ 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 5d173538..12800fd3 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: sql-exporter description: Database-agnostic SQL exporter for Prometheus type: application -version: 0.10.1 +version: 0.10.2 appVersion: 0.17.0 keywords: - exporter diff --git a/helm/README.md b/helm/README.md index b9b7b460..7fdd9261 100644 --- a/helm/README.md +++ b/helm/README.md @@ -1,6 +1,6 @@ # sql-exporter -![Version: 0.10.1](https://img.shields.io/badge/Version-0.10.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.17.0](https://img.shields.io/badge/AppVersion-0.17.0-informational?style=flat-square) +![Version: 0.10.2](https://img.shields.io/badge/Version-0.10.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.17.0](https://img.shields.io/badge/AppVersion-0.17.0-informational?style=flat-square) Database-agnostic SQL exporter for Prometheus @@ -65,6 +65,7 @@ as an example. | ingress.annotations | object | `{}` | Ingress annotations | | ingress.ingressClassName | string | `""` | Ingress class name | | ingress.host | string | `""` | Ingress host | +| ingress.path | string | `"/"` | Ingress path | | ingress.tls | object | `{"crt":"","enabled":false,"key":"","secretName":""}` | Ingress TLS, can be defined by cert secret, or by key and cert. | | ingress.tls.secretName | string | `""` | Ingress tls secret if already exists. | | ingress.tls.crt | string | `""` | Ingress tls.crt, required if you don't have secret name. | diff --git a/helm/templates/ingress.yaml b/helm/templates/ingress.yaml index a85bcc5c..62da85e4 100644 --- a/helm/templates/ingress.yaml +++ b/helm/templates/ingress.yaml @@ -25,7 +25,7 @@ spec: rules: - http: paths: - - path: / + - path: {{ .Values.ingress.path }} pathType: Prefix backend: service: diff --git a/helm/values.yaml b/helm/values.yaml index 9fd5eb8f..274437c4 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -34,6 +34,8 @@ ingress: ingressClassName: "" # -- Ingress host host: "" + # -- Ingress path + path: "/" # -- Ingress TLS, can be defined by cert secret, or by key and cert. tls: enabled: false