Skip to content

chore(ksonnet)!: Remove boltdb-shipper specific flags from lib - #21656

Merged
chaudum merged 5 commits into
mainfrom
chaudum/remove-boltdb-shipper-from-jsonnet-lib
Apr 22, 2026
Merged

chore(ksonnet)!: Remove boltdb-shipper specific flags from lib#21656
chaudum merged 5 commits into
mainfrom
chaudum/remove-boltdb-shipper-from-jsonnet-lib

Conversation

@chaudum

@chaudum chaudum commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

Summary

With the removal of deprecated storage backends, the Loki jsonnet library is also cleaned up to reflect these changes. Affected configuration flags are:

  • $._config.using_shipper_store - any usages defaulted to true
  • $._config.using_boltdb_shipper - any usages defaulted to false
  • $._config.using_tsdb_shipper - any usages defaulted to true

This change may update both command line arguments and the Loki config. If you've been using or overriding one of the three aforementioned configuration options, please remove them and replace them with the new defaults.


Note

Medium Risk
This is a breaking change for Jsonnet/Tanka users who relied on using_*shipper toggles or BoltDB-shipper-specific behavior; it alters generated Loki args/manifests (shipper, compactor, ruler, index-gateway) and may change runtime config if overrides were in use.

Overview
Drops non-TSDB store support in the ksonnet Jsonnet lib by removing $._config.using_shipper_store, using_boltdb_shipper, and using_tsdb_shipper and simplifying shipper.libsonnet to always configure tsdb_shipper (and default stateful_queriers when no index-gateway).

Refactors compactor deployment out of shipper.libsonnet into a new compactor.libsonnet and wires it into loki.libsonnet, including optional horizontal-scaling worker support.

Removes BoltDB-shipper wiring elsewhere: index-gateway.libsonnet no longer configures boltdb_shipper client settings, and ruler.libsonnet drops BoltDB-shipper-specific cache flags/stateful defaults.

Documentation and examples are updated to reflect the breaking change and to use newer defaults (example bumps Loki image to 3.7.1 and switches schema to tsdb/v13).

Reviewed by Cursor Bugbot for commit 27f71b0. Bugbot is set up for automated code reviews on this repo. Configure here.

@@ -0,0 +1,95 @@
{

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved here from shipper.libsonnet


_config+:: {
// run rulers as statefulsets when using boltdb-shipper to avoid using node disk for storing the index.
stateful_rulers: if self.using_boltdb_shipper && !self.use_index_gateway then true else super.stateful_rulers,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

self.using_boltdb_shipper && !self.use_index_gateway always resolves to false

@chaudum
chaudum marked this pull request as ready for review April 22, 2026 10:10
@chaudum
chaudum requested a review from a team as a code owner April 22, 2026 10:10
@github-actions

github-actions Bot commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

💻 Deploy preview deleted (chore(ksonnet)!: Remove boltdb-shipper specific flags from lib).

@ashwanthgoli ashwanthgoli left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@chaudum
chaudum merged commit 6446e91 into main Apr 22, 2026
87 checks passed
@chaudum
chaudum deleted the chaudum/remove-boltdb-shipper-from-jsonnet-lib branch April 22, 2026 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2 participants