Browse Source

remove env check

Signed-off-by: Sean Holcomb <seanholcomb@gmail.com>
Sean Holcomb 2 years ago
parent
commit
85e98857e7
1 changed files with 0 additions and 7 deletions
  1. 0 7
      pkg/cloud/config/controller_handlers.go

+ 0 - 7
pkg/cloud/config/controller_handlers.go

@@ -14,7 +14,6 @@ import (
 	"github.com/opencost/opencost/pkg/cloud/aws"
 	"github.com/opencost/opencost/pkg/cloud/aws"
 	"github.com/opencost/opencost/pkg/cloud/azure"
 	"github.com/opencost/opencost/pkg/cloud/azure"
 	"github.com/opencost/opencost/pkg/cloud/gcp"
 	"github.com/opencost/opencost/pkg/cloud/gcp"
-	"github.com/opencost/opencost/pkg/env"
 )
 )
 
 
 var protocol = proto.HTTP()
 var protocol = proto.HTTP()
@@ -27,12 +26,6 @@ func (c *Controller) cloudCostChecks() func(w http.ResponseWriter, r *http.Reque
 		}
 		}
 	}
 	}
 
 
-	if !env.IsCloudCostEnabled() {
-		return func(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
-			http.Error(w, "ConfigController: is not enabled", http.StatusServiceUnavailable)
-		}
-	}
-
 	return nil
 	return nil
 }
 }