github mr-karan/calert v2.3.0

2 days ago

What's Changed

Features

  • Template Functions: Added new template functions for alert formatting (#78)
    • toLower, HasPrefix, HasSuffix, Replace, TrimSpace, Default
    • All template functions now accept any type (fixes errors with non-string label values)
  • Incident Timing: Added time-related template functions (#90)
    • CurrentTime, ConvertTZ, DurationSince
  • Rate Limit Handling: Added automatic retry on HTTP 429 responses from Google Chat API (#83)
  • Helm Ingress: Added Ingress resource support to Helm chart

Bug Fixes

  • Helm Chart: Fixed security context schema validation and removed unnecessary NET_BIND_SERVICE capability (#103, #109)
  • Helm Chart: Added missing provider options (threaded_replies, retry config) and fixed boolean types (#84)
  • Helm Chart: Fixed readinessProbe values, added startupProbe support
  • Debug Logging: CardsV2 payload now included in debug log output (#104)
  • Error Messages: Improved error messages for unknown room with list of available rooms and Kubernetes hint (#75)

Documentation

  • Added comprehensive template functions documentation with examples
  • Added CardsV2 template example for rich formatting
  • Documented Google Chat formatting limitations (colors, emojis)
  • Added repeat_interval behavior explanation
  • Added Kubernetes AlertmanagerConfig room_name workaround
  • Added Artifact Hub repository configuration (#77)
  • Added helm-docs support for auto-generated documentation

Testing

  • Added comprehensive test coverage for metrics package
  • Added tests for notifier package
  • Added tests for HTTP handlers
  • Added tests for template functions and ActiveAlerts

Chores

  • Updated all Go dependencies to latest versions
  • Updated Go version to 1.24 in CI workflow
  • Updated Helm chart with improved defaults

Upgrading

This release is backward compatible. No configuration changes required.

Helm users: Update your values if you want to use new options:

providers:
  my_room:
    threaded_replies: true  # Now properly supported
    retry_max: 3
    retry_wait_min: "1s"
    retry_wait_max: "5s"

Changelog

  • fd13d46 ci: update Go version to 1.24 in release workflow
  • 977af35 docs: add template functions, CardsV2, and troubleshooting documentation
  • 0f74703 test(metrics): add comprehensive test coverage for metrics package
  • 12905f8 fix(helm): add missing provider options and fix boolean types
  • 0afe1af fix(notifier): improve error message for unknown room
  • 3a4b6b4 test: add tests for notifier and HTTP handlers
  • 31f67e6 fix(template): make template functions type-safe for non-string values
  • 8888449 chore(helm): add Artifact Hub repository configuration
  • a29ef56 feat(template): add incident timing functions for alert messages
  • e94d9d2 fix(google_chat): include CardsV2 in debug log output
  • d63323c fix(helm): fix security context schema validation and remove NET_BIND_SERVICE
  • 85baaba fix(google_chat): add retry on 429 rate limit errors
  • 156c93b fix: use correct format verb for error string in log.Printf
  • d13985e chore: update all dependencies to latest versions
  • 83b5c41 Merge pull request #111 from paulfantom/parametrise-build
  • ded7441 Merge pull request #110 from acidsugarx/main
  • 32593c6 use env variable when creating images
  • a0c6dea docs(helm): add helm-docs support for auto-generated documentation
  • 1d74d74 feat(helm): add Ingress resource support
  • 9756462 Merge pull request #106 from paulfantom/issue-104
  • 7d04779 Merge pull request #107 from WojciechKarpiel/issue-103
  • 90b8479 Merge pull request #108 from WojciechKarpiel/appversion-tag
  • 1b0ce96 Use Chart's appVersion as the default image's tag
  • 63daca6 Separate [Container]SecurityContext and PodSecurityContext
  • 6378f89 google_chat: refactor "alerts_dispatched_" metrics to include preparation stage and not only message sending stage
  • 5088a85 Merge pull request #101 from QuentinBtd/feat/helm/add_startupProbe
  • e2993e7 feat(helm): add startupProbe to replace initialDelaySeconds in others probes
  • ca7b2ec Merge pull request #100 from QuentinBtd/fix/helm/readinessProbe
  • ee8c580 fix(helm): readinessProbe values instead of livenessProbe for readinessProbe
  • 4afc503 Merge pull request #99 from QuentinBtd/chore/add_custom_settings_for_probes
  • 89d51f3 chore(helm): add custom settings for probes

Don't miss a new calert release

NewReleases is sending notifications on new releases.