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:
parent
397b7e2038
commit
8d902f315c
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue