From c1511e592d296f7c01815b7ef5598c431ba7d347 Mon Sep 17 00:00:00 2001 From: Ben Jackson Date: Wed, 27 Dec 2023 15:20:14 +1100 Subject: [PATCH] chore: remove hardcoded development override in service idler --- handlers/idler/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/idler/service.go b/handlers/idler/service.go index 69f2b44..b1b9837 100644 --- a/handlers/idler/service.go +++ b/handlers/idler/service.go @@ -61,7 +61,7 @@ func (h *Idler) ServiceIdler() { environmentAutoIdle, ok2 := namespace.ObjectMeta.Labels[h.Selectors.NamespaceSelectorsLabels.EnvironmentIdling] environmentType, ok3 := namespace.ObjectMeta.Labels[h.Selectors.NamespaceSelectorsLabels.EnvironmentType] if ok1 && ok2 && ok3 { - if environmentType == "development" && environmentAutoIdle == "1" && projectAutoIdle == "1" { + if environmentAutoIdle == "1" && projectAutoIdle == "1" { envOpLog := opLog.WithValues("namespace", namespace.ObjectMeta.Name). WithValues("project", namespace.ObjectMeta.Labels[h.Selectors.NamespaceSelectorsLabels.ProjectName]). WithValues("environment", namespace.ObjectMeta.Labels[h.Selectors.NamespaceSelectorsLabels.EnvironmentName]).