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:
parent
52e1110177
commit
42a0bc0143
3 changed files with 2328 additions and 1 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
|||
.go-version
|
||||
.deploy
|
||||
/config.yaml
|
||||
build
|
||||
|
@ -7,4 +8,4 @@ sqlite-database*.db
|
|||
values.yaml
|
||||
coverage.out
|
||||
heap*
|
||||
/.env*
|
||||
/.env*
|
||||
|
|
|
@ -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{}
|
||||
|
||||
|
|
Loading…
Reference in a new issue