Skip to content

Commit

Permalink
Merge pull request #205 from zalando-incubator/scalyr-api-key
Browse files Browse the repository at this point in the history
Overwrite scalyr api key if the relevant env var is present in the operator pod
  • Loading branch information
sdudoladov committed Jan 12, 2018
2 parents 56359d2 + ec6799f commit 8c9033d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package controller

import (
"fmt"
"os"
"sync"

"github.com/Sirupsen/logrus"
Expand Down Expand Up @@ -107,6 +108,11 @@ func (c *Controller) initOperatorConfig() {
}

c.opConfig = config.NewFromMap(configMapData)

scalyrAPIKey := os.Getenv("SCALYR_API_KEY")
if scalyrAPIKey != "" {
c.opConfig.ScalyrAPIKey = scalyrAPIKey
}
}

func (c *Controller) initController() {
Expand Down

0 comments on commit 8c9033d

Please sign in to comment.