Skip to content
This repository has been archived by the owner on Apr 8, 2022. It is now read-only.

add "KW_" to SLACK_CHANNEL and SLACK_TOKEN #131

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,11 @@ func (c *Config) CheckMissingResourceEnvvars() {
if !c.Resource.Ingress && os.Getenv("KW_INGRESS") == "true" {
c.Resource.Ingress = true
}
if (c.Handler.Slack.Channel == "") && (os.Getenv("SLACK_CHANNEL") != "") {
c.Handler.Slack.Channel = os.Getenv("SLACK_CHANNEL")
if (c.Handler.Slack.Channel == "") && (os.Getenv("KW_SLACK_CHANNEL") != "") {
c.Handler.Slack.Channel = os.Getenv("KW_SLACK_CHANNEL")
}
if (c.Handler.Slack.Token == "") && (os.Getenv("SLACK_TOKEN") != "") {
c.Handler.Slack.Token = os.Getenv("SLACK_TOKEN")
if (c.Handler.Slack.Token == "") && (os.Getenv("KW_SLACK_TOKEN") != "") {
c.Handler.Slack.Token = os.Getenv("KW_SLACK_TOKEN")
}
}

Expand Down