We are trying to route alerts based on namespace Names using email and slack config. Basically, if pod is deployed in test namespace then send email to
te...@xxx.com and slack to #test channel. I tried accessing {{ .Labels.namespace }} in email’s to option and also slack’s channel option. It gives “can’t evaluate field Labels in type *template. Data”. Any help would be appreciated.
Thanks.