Skip to content

Commit

Permalink
fix(operator): Support using multiple buckets with AWS STS (grafana#1…
Browse files Browse the repository at this point in the history
…2008)

Co-authored-by: Periklis Tsirakidis <[email protected]>
  • Loading branch information
2 people authored and rhnasc committed Apr 12, 2024
1 parent 9778df0 commit 0fdc355
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions operator/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## Main

- [12008](https://github.com/grafana/loki/pull/12008) **xperimental**: Support using multiple buckets with AWS STS
- [11964](https://github.com/grafana/loki/pull/11964) **xperimental**: Provide Azure region for managed credentials using environment variable
- [11920](https://github.com/grafana/loki/pull/11920) **xperimental**: Refactor handling of credentials in managed-auth mode
- [11869](https://github.com/grafana/loki/pull/11869) **periklis**: Add support for running with Google Workload Identity
Expand Down
3 changes: 2 additions & 1 deletion operator/internal/manifests/internal/config/build_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5436,7 +5436,8 @@ func TestBuild_ConfigAndRuntimeConfig_STS(t *testing.T) {
}
expStorageConfig := `
s3:
s3: s3://my-region/my-bucket
bucketnames: my-bucket
region: my-region
s3forcepathstyle: false`

expCfg := `
Expand Down
3 changes: 2 additions & 1 deletion operator/internal/manifests/internal/config/loki-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ common:
{{- with .ObjectStorage.S3 }}
s3:
{{- if .STS }}
s3: "s3://{{.Region}}/{{.Buckets}}"
bucketnames: {{.Buckets}}
region: {{.Region}}
s3forcepathstyle: false
{{- else }}
s3: {{ .Endpoint }}
Expand Down

0 comments on commit 0fdc355

Please sign in to comment.