Skip to content

v0.5.0

Compare
Choose a tag to compare
@achetronic achetronic released this 08 Apr 02:42
· 9 commits to master since this release

Features:

  • 🤯 Add more data available to the conditions/message template. Previously the main scope . on templating included only the object triggering the event. From this release this was replaced by a more complete object . = {eventType, object, previousObject}. This will help to handle some use cases where it's needed to distinguish the events to send notifications. For example, like using Notifik to set markers on Grafana when a new ReplicaSet is created

  • ❤️ Replace Watchers with RetryWatchers and Informers. Previously, resources in Kubernetes were watched using pure client-go watchers. On network issues or Kubernetes API server timeouts, watcher was simply recreated, triggering all the events again, spamming Kubernetes API server from time to time. Now, this was replaced by RetryWatchers and Informers, that are two newer patterns to do the same with some retries and cache in the middle. This is intended to hide this problems from the final user, being much more resilient and causing less spam to the API. Both are included (Informers are used by default) and you can chose your favorite strategy with a flag

  • 🏳️ Add several flags

    • --use-watchers to enable using RetryWatchers instead of Informers.
    • --informer-seconds-to-resync to set the amount of seconds to wait before resyncing all the objects when using Informers
    • --watcher-events-per-second to replace previous --events-per-second
  • 📜 Update README to include changes

Contributors:
@achetronic