Skip to content

Commit

Permalink
Make k8s-enabled default to true if it's not set
Browse files Browse the repository at this point in the history
  • Loading branch information
John Wregglesworth committed May 16, 2023
1 parent c9beced commit f9d0c70
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,13 @@ func main() {
}
log.Info("done configuring user lookups")

k8sEnabled := cfg.GetBool("vice.k8s-enabled")
var k8sEnabled = false
if cfg.InConfig("vice.k8s-enabled") {
k8sEnabled = cfg.GetBool("vice.k8s-enabled")
} else {
k8sEnabled = true
}

appsBase := cfg.GetString("apps.base")

if appsBase == "" {
Expand Down

0 comments on commit f9d0c70

Please sign in to comment.