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

add slack as env var (#196)

* Update Changelog

Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
Signed-off-by: nobletrout <nobletrout@gmail.com>

* add slack as env var
add .go-version to .gitignore

Signed-off-by: nobletrout <nobletrout@gmail.com>

* missed an "h"

Signed-off-by: nobletrout <nobletrout@gmail.com>

* add slack as env var
add .go-version to .gitignore

Signed-off-by: nobletrout <nobletrout@gmail.com>

* missed an "h"

Signed-off-by: nobletrout <nobletrout@gmail.com>

Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
Signed-off-by: nobletrout <nobletrout@gmail.com>
Co-authored-by: Frank Jogeleit <frank.jogeleit@web.de>
This commit is contained in:
nobletrout 2022-09-11 15:55:35 -04:00 committed by GitHub
parent 52e1110177
commit 42a0bc0143
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2328 additions and 1 deletions

3
.gitignore vendored
View file

@ -1,3 +1,4 @@
.go-version
.deploy
/config.yaml
build
@ -7,4 +8,4 @@ sqlite-database*.db
values.yaml
coverage.out
heap*
/.env*
/.env*

2324
go.sum

File diff suppressed because it is too large Load diff

View file

@ -83,6 +83,8 @@ func Load(cmd *cobra.Command) (*Config, error) {
_ = v.BindEnv("emailReports.smtp.host", "EMAIL_REPORTS_SMTP_HOST")
_ = v.BindEnv("emailReports.smtp.port", "EMAIL_REPORTS_SMTP_PORT")
_ = v.BindEnv("emailReports.smtp.from", "EMAIL_REPORTS_SMTP_FROM")
// bind slack webhook from environment vars, if existing
_ = v.BindEnv("slack.webhook", "SLACK_WEBHOOK")
c := &Config{}