Skip to content

Commit

Permalink
Support OpenStack application credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
heytrav committed Jun 19, 2024
1 parent 1d6f8d5 commit 273d4ea
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 4 deletions.
3 changes: 3 additions & 0 deletions docs/sources/setup/install/helm/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -5690,6 +5690,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,
Expand Down
4 changes: 4 additions & 0 deletions production/helm/loki/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ Entries should include a reference to the pull request that introduced the chang

[//]: # (<AUTOMATED_UPDATES_LOCATOR> : do not remove this line. This locator is used by the CI pipeline to automatically create a changelog entry for each new Loki release. Add other chart versions and respective changelog entries bellow this line.)

## 6.7.0

- [ENHANCEMENT] Add support for OpenStack application credentials when using Swift for storage

## 6.6.4

- [BUGFIX] Fix extraObjects
Expand Down
2 changes: 1 addition & 1 deletion production/helm/loki/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.3
version: 6.7.0
home: https://grafana.github.io/helm-charts
sources:
- https://github.com/grafana/loki
Expand Down
2 changes: 1 addition & 1 deletion production/helm/loki/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# loki

![Version: 6.6.3](https://img.shields.io/badge/Version-6.6.3-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.

Expand Down
29 changes: 27 additions & 2 deletions production/helm/loki/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -315,7 +324,9 @@ swift:
{{- with .user_id }}
user_id: {{ . }}
{{- end }}
password: {{ .password }}
{{- with .password }}
password: {{ . }}
{{- end }}
{{- with .domain_id }}
domain_id: {{ . }}
{{- end }}
Expand Down Expand Up @@ -493,6 +504,18 @@ 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 .application_credential_id }}
application_credential_id: {{ . }}
{{- end }}
{{- with .auth_version }}
auth_version: {{ . }}
{{- end }}
Expand All @@ -508,7 +531,9 @@ storage:
{{- with .user_id }}
user_id: {{ . }}
{{- end }}
password: {{ .password }}
{{- with .password }}
password: {{ . }}
{{- end }}
{{- with .domain_id }}
domain_id: {{ . }}
{{- end }}
Expand Down
3 changes: 3 additions & 0 deletions production/helm/loki/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 273d4ea

Please sign in to comment.