Skip to content

Commit

Permalink
fix: 🐛 missing env vars not passed correctly (#551)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaskaransarkaria committed Mar 12, 2024
1 parent f8944ef commit bdc0cdc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/environment/environmentApply.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ type RequiredEnvVars struct {
kubernetescluster string `required:"true" envconfig:"TF_VAR_kubernetes_cluster"`
githubowner string `required:"true" envconfig:"TF_VAR_github_owner"`
githubtoken string `required:"true" envconfig:"TF_VAR_github_token"`
slackBotToken string `required:"false" envconfig:"SLACK_BOT_TOKEN"`
slackWebhookUrl string `required:"false" envconfig:"SLACK_WEBHOOK_URL"`
slackBotToken string `required:"true" envconfig:"SLACK_BOT_TOKEN"`
slackWebhookUrl string `required:"true" envconfig:"SLACK_WEBHOOK_URL"`
pingdomapitoken string `required:"true" envconfig:"PINGDOM_API_TOKEN"`
}

Expand Down Expand Up @@ -87,6 +87,7 @@ func (a *Apply) Initialize() {
a.RequiredEnvVars.githubowner = reqEnvVars.githubowner
a.RequiredEnvVars.githubtoken = reqEnvVars.githubtoken
a.RequiredEnvVars.slackBotToken = reqEnvVars.slackBotToken
a.RequiredEnvVars.slackWebhookUrl = reqEnvVars.slackWebhookUrl
a.RequiredEnvVars.pingdomapitoken = reqEnvVars.pingdomapitoken
// Set KUBE_CONFIG_PATH to the path of the kubeconfig file
// This is needed for terraform to be able to connect to the cluster when a different kubecfg is passed
Expand Down

0 comments on commit bdc0cdc

Please sign in to comment.