brigadecore / brigade

Event-driven scripting for Kubernetes
https://brigade.sh/
Apache License 2.0
2.41k stars 246 forks source link

v3 sdk #1787

Closed krancour closed 2 years ago

krancour commented 2 years ago

Replaces #1779. All of @vdice's feedback from #1779 has been incorporated here in 46b7307345c3a2448a246b336c4457e32d95988d

From #1779:

I believe the best path forward on #1776 requires breaking changes to the SDK.

This PR replaces the v2 SDK with a v3 SDK. The major difference is that all function signatures that didn't already take some kind of options object now do. In all cases, these new option types have no fields (yet) and exist only to preserve the option to implement these sort of options in the future without incurring the breaking changes that occur when function signature change.

In total, there are no functional changes in this PR.

netlify[bot] commented 2 years ago

✔️ Deploy Preview for brigade-docs ready!

🔨 Explore the source changes: 67dd983e791044a33b73a4db59050153239749e0

🔍 Inspect the deploy log: https://app.netlify.com/sites/brigade-docs/deploys/61eaf497c1bb4000097cde74

😎 Browse the preview: https://deploy-preview-1787--brigade-docs.netlify.app