bottlerocket icon indicating copy to clipboard operation
bottlerocket copied to clipboard

Move `schnauzer` to the `bottlerocket-settings-sdk`

Open cbgbt opened this issue 1 year ago • 1 comments

What I'd like: Configuration templates that are rendered by Bottlerocket's settings API are rendered using the schnauzer utility. The source code canonically lives in bottlerocket-core-kit; however, Bottlerocket migrations currently use schnauzer to perform migrations on template-based settings generators.

We need to consider some mechanism for sharing schnauzer as a library between this repository and core-kit. One potential solution would be to move schnauzer to the bottlerocket-settings-sdk.

cbgbt avatar Aug 27 '24 23:08 cbgbt

One challenge here is that schnauzer depends on apiclient in order to fetch the settings needed to render a template. We may similarly need to publish Bottlerocket's apiclient as a standalone crate.

The apiclient is settings-model-agnostic; however, we would need to be more cautious regarding API client/server compatibility.

cbgbt avatar Aug 27 '24 23:08 cbgbt

With changes to Bottlerocket's settings system introduced in core-kit 6.0.0, we no longer need to move schnauzer -- we can just remove it from this repository.

cbgbt avatar Mar 28 '25 17:03 cbgbt