1
0
Fork 0
mirror of https://github.com/kyverno/policy-reporter.git synced 2024-12-14 11:57:32 +00:00

FIX: Slack channel override when using a secretRef for the webhook (#460)

Related to: https://github.com/kyverno/policy-reporter/issues/458

Signed-off-by: Jesus Carrillo <jesuscarrillo8@gmail.com>
This commit is contained in:
Jesus Carrillo 2024-07-12 01:26:36 -07:00 committed by GitHub
parent 397b7e2038
commit 8d902f315c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -815,6 +815,8 @@ func (f *TargetFactory) mapSecretValues(config any, ref, mountedSecret string) {
case *Slack:
if values.Webhook != "" {
c.Webhook = values.Webhook
}
if values.Channel != "" {
c.Channel = values.Channel
}