This repository has been archived by the owner on Sep 30, 2024. It is now read-only.
spike: investigate dhall for deploy-sourcegraph #10145
Labels
estimate/3d
ops & tools & dev
planned/3.16
Issues that were planned for the given milestone. Used by cmd/tracking-issue.
spike
Time boxed investigation meant to facilitate more granular planning.
Milestone
Related:
In RFC 141, we're exploring new configuration mechanisms for deploy-sourcegraph. As stated in the RFC, the main requirements for a solution are:
RFC 141's proposed solution involves using bash scripts (plus
yj
andjq
) to manipulate the base manifests. This solution has a few pitfalls:Using bash isn't type-safe. As mentioned by @uwedeportivo, this approach is similar to just using something like
sed
- the tool has no knowledge of yaml or kubernetes schemas so it's possible for it to make syntactic and semantic errorsRunning multiple customization bash scripts isn't guaranteed to be commutative . Off the shelf ways I can think of to solve this would be very complex and hard to maintain (total ordering of bash scripts, making all bash scripts aware of each other's existence).
dhall is a tool that I think can address some subset of these issues and a few more:
Main benefit relevant to this issue: can be run as a validation layer on top of deploy-sourcegraph and our provided customization bash scripts.
Extra benefits:
What I plan to do in the spike:
Questions I want to answer:
The text was updated successfully, but these errors were encountered: