Skip to content

Commit

Permalink
Merge pull request #23 from amazeeio/remove-development-hardcode
Browse files Browse the repository at this point in the history
chore: remove hardcoded development override in service idler
  • Loading branch information
shreddedbacon authored Dec 27, 2023
2 parents 35fbc86 + c1511e5 commit 4fa9c23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/idler/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]).
Expand Down

0 comments on commit 4fa9c23

Please sign in to comment.