RoadieHQ / kubewise

Get Helm notifications in your team chat
Apache License 2.0
59 stars 6 forks source link

Simplify handlers to one method and one arg #20

Closed dtuite closed 4 years ago

dtuite commented 4 years ago

This commit makes it simpler to add more handlers in the future. They no longer need to accpet two release objects and compare them to decide what to do. Instead, they accept one releaseEvent which contains all the state needed to describe the Helm event which just occurred.

This makes for much more understandable handers.