From 174ef4472c358038e290f4f55a91447876aa869e Mon Sep 17 00:00:00 2001 From: riwar <118049330+riwar@users.noreply.github.com> Date: Mon, 31 Jul 2023 17:23:39 +0200 Subject: [PATCH] Jsonet: Fixes typo in shipper.libjsonnet (#9992) **What this PR does / why we need it**: Changes line 43 in production/ksonnet/loki shipper.json from: `shared_store: if self.using_tsdb_shipper then self.tsdb_shipper_shared_store else self.boltdb_shipper_shared_store`, to `shared_store: if $._config.using_tsdb_shipper then $._config.tsdb_shipper_shared_store else $._config.boltdb_shipper_shared_store,` In order to fix "field using_tsdb_shipper not found" **Which issue(s) this PR fixes**: Fixes # **Special notes for your reviewer**: **Checklist** - [x] Reviewed the [`CONTRIBUTING.md`](https://github.com/grafana/loki/blob/main/CONTRIBUTING.md) guide (**required**) - [ ] Documentation added - [ ] Tests updated - [ ] `CHANGELOG.md` updated - [ ] If the change is worth mentioning in the release notes, add `add-to-release-notes` label - [ ] Changes that require user attention or interaction to upgrade are documented in `docs/sources/upgrading/_index.md` - [ ] For Helm chart changes bump the Helm chart version in `production/helm/loki/Chart.yaml` and update `production/helm/loki/CHANGELOG.md` and `production/helm/loki/README.md`. [Example PR](https://github.com/grafana/loki/commit/d10549e3ece02120974929894ee333d07755d213) Co-authored-by: Michel Hollands <42814411+MichelHollands@users.noreply.github.com> --- production/ksonnet/loki/shipper.libsonnet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/production/ksonnet/loki/shipper.libsonnet b/production/ksonnet/loki/shipper.libsonnet index b8d492d3aa8d..7525ab6a9cdb 100644 --- a/production/ksonnet/loki/shipper.libsonnet +++ b/production/ksonnet/loki/shipper.libsonnet @@ -40,7 +40,7 @@ compactor+: { working_directory: '/data/compactor', // prefer tsdb index over boltdb - shared_store: if self.using_tsdb_shipper then self.tsdb_shipper_shared_store else self.boltdb_shipper_shared_store, + shared_store: if $._config.using_tsdb_shipper then $._config.tsdb_shipper_shared_store else $._config.boltdb_shipper_shared_store, }, } else {}, },