From 2033cc2aa2b742b93525c9259ce3391a09632440 Mon Sep 17 00:00:00 2001 From: Travis Holton Date: Thu, 20 Jun 2024 07:45:24 +1200 Subject: [PATCH] Helm chart support for OpenStack application credentials --- docs/sources/setup/install/helm/reference.md | 3 ++ production/helm/loki/CHANGELOG.md | 3 ++ production/helm/loki/Chart.yaml | 2 +- production/helm/loki/README.md | 2 +- production/helm/loki/templates/_helpers.tpl | 51 +++++++++++++++++--- production/helm/loki/values.yaml | 3 ++ 6 files changed, 56 insertions(+), 8 deletions(-) diff --git a/docs/sources/setup/install/helm/reference.md b/docs/sources/setup/install/helm/reference.md index 03f9d17f26984..936e26458ad41 100644 --- a/docs/sources/setup/install/helm/reference.md +++ b/docs/sources/setup/install/helm/reference.md @@ -5699,6 +5699,9 @@ null "signatureVersion": null }, "swift": { + "application_credential_id": null, + "application_credential_name": null, + "application_credential_secret": null, "auth_url": null, "auth_version": null, "connect_timeout": null, diff --git a/production/helm/loki/CHANGELOG.md b/production/helm/loki/CHANGELOG.md index 3656b9c8e5805..09be8a89b743b 100644 --- a/production/helm/loki/CHANGELOG.md +++ b/production/helm/loki/CHANGELOG.md @@ -20,6 +20,9 @@ Entries should include a reference to the pull request that introduced the chang ## 6.6.5 - [BUGFIX] Fix querier address in SingleBinary mode +## 6.7.0 + +- [ENHANCEMENT] Add support for OpenStack application credentials when using Swift for storage ## 6.6.4 diff --git a/production/helm/loki/Chart.yaml b/production/helm/loki/Chart.yaml index 093286f130780..14500b78b3962 100644 --- a/production/helm/loki/Chart.yaml +++ b/production/helm/loki/Chart.yaml @@ -3,7 +3,7 @@ name: loki description: Helm chart for Grafana Loki and Grafana Enterprise Logs supporting both simple, scalable and distributed modes. type: application appVersion: 3.0.0 -version: 6.6.6 +version: 6.7.0 home: https://grafana.github.io/helm-charts sources: - https://github.com/grafana/loki diff --git a/production/helm/loki/README.md b/production/helm/loki/README.md index 5c59d74c7ef17..1197ff2090bf9 100644 --- a/production/helm/loki/README.md +++ b/production/helm/loki/README.md @@ -1,6 +1,6 @@ # loki -![Version: 6.6.6](https://img.shields.io/badge/Version-6.6.6-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.0.0](https://img.shields.io/badge/AppVersion-3.0.0-informational?style=flat-square) +![Version: 6.7.0](https://img.shields.io/badge/Version-6.7.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.0.0](https://img.shields.io/badge/AppVersion-3.0.0-informational?style=flat-square) Helm chart for Grafana Loki and Grafana Enterprise Logs supporting both simple, scalable and distributed modes. diff --git a/production/helm/loki/templates/_helpers.tpl b/production/helm/loki/templates/_helpers.tpl index 58fc5c6cba800..e235aa1d39467 100644 --- a/production/helm/loki/templates/_helpers.tpl +++ b/production/helm/loki/templates/_helpers.tpl @@ -300,6 +300,15 @@ azure: {{- else if eq .Values.loki.storage.type "swift" -}} {{- with .Values.loki.storage.swift }} swift: + {{- with .application_credential_id }} + application_credential_id: {{ . }} + {{- end }} + {{- with .application_credential_name }} + application_credential_name: {{ . }} + {{- end }} + {{- with .application_credential_secret }} + application_credential_secret: {{ . }} + {{- end }} {{- with .auth_version }} auth_version: {{ . }} {{- end }} @@ -307,7 +316,9 @@ swift: {{- with .internal }} internal: {{ . }} {{- end }} - username: {{ .username }} + {{- with .username }} + username: {{ . }} + {{- end }} user_domain_name: {{ .user_domain_name }} {{- with .user_domain_id }} user_domain_id: {{ . }} @@ -315,7 +326,9 @@ swift: {{- with .user_id }} user_id: {{ . }} {{- end }} - password: {{ .password }} + {{- with .password }} + password: {{ . }} + {{- end }} {{- with .domain_id }} domain_id: {{ . }} {{- end }} @@ -409,6 +422,15 @@ azure: {{- else if eq .Values.loki.storage.type "swift" -}} {{- with .Values.loki.storage.swift }} swift: + {{- with .application_credential_id }} + application_credential_id: {{ . }} + {{- end }} + {{- with .application_credential_name }} + application_credential_name: {{ . }} + {{- end }} + {{- with .application_credential_secret }} + application_credential_secret: {{ . }} + {{- end }} {{- with .auth_version }} auth_version: {{ . }} {{- end }} @@ -416,7 +438,9 @@ swift: {{- with .internal }} internal: {{ . }} {{- end }} - username: {{ .username }} + {{- with .username }} + username: {{ . }} + {{- end }} user_domain_name: {{ .user_domain_name }} {{- with .user_domain_id }} user_domain_id: {{ . }} @@ -424,7 +448,9 @@ swift: {{- with .user_id }} user_id: {{ . }} {{- end }} - password: {{ .password }} + {{- with .password }} + password: {{ . }} + {{- end }} {{- with .domain_id }} domain_id: {{ . }} {{- end }} @@ -493,6 +519,15 @@ storage: {{- with .Values.loki.storage.swift }} backend: "swift" swift: + {{- with .application_credential_id }} + application_credential_id: {{ . }} + {{- end }} + {{- with .application_credential_name }} + application_credential_name: {{ . }} + {{- end }} + {{- with .application_credential_secret }} + application_credential_secret: {{ . }} + {{- end }} {{- with .auth_version }} auth_version: {{ . }} {{- end }} @@ -500,7 +535,9 @@ storage: {{- with .internal }} internal: {{ . }} {{- end }} - username: {{ .username }} + {{- with .username }} + username: {{ . }} + {{- end }} user_domain_name: {{ .user_domain_name }} {{- with .user_domain_id }} user_domain_id: {{ . }} @@ -508,7 +545,9 @@ storage: {{- with .user_id }} user_id: {{ . }} {{- end }} - password: {{ .password }} + {{- with .password }} + password: {{ . }} + {{- end }} {{- with .domain_id }} domain_id: {{ . }} {{- end }} diff --git a/production/helm/loki/values.yaml b/production/helm/loki/values.yaml index 359217fc7e219..f8eccef73768d 100644 --- a/production/helm/loki/values.yaml +++ b/production/helm/loki/values.yaml @@ -343,6 +343,9 @@ loki: requestTimeout: null endpointSuffix: null swift: + application_credential_id: null + application_credential_name: null + application_credential_secret: null auth_version: null auth_url: null internal: null