From f9d0c708eae3f11d53436840916b891e2bc8c140 Mon Sep 17 00:00:00 2001 From: John Wregglesworth Date: Tue, 16 May 2023 14:08:26 -0700 Subject: [PATCH] Make k8s-enabled default to true if it's not set --- main.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index d1cc66e..c73747d 100644 --- a/main.go +++ b/main.go @@ -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 == "" {