resmoio / kubernetes-event-exporter

Export Kubernetes events to multiple destinations with routing and filtering
Apache License 2.0
789 stars 158 forks source link

sink/slack: Use `GetString` for color #112

Closed superbrothers closed 1 year ago

superbrothers commented 1 year ago

This PR changes to use GetString for color of slack sink.

I want to change the color by .Type as follows:

    color: '{{ if eq .Type "Warning" }}danger{{ else }}good{{ end }}'