瀏覽代碼

remove env check

Signed-off-by: Sean Holcomb <seanholcomb@gmail.com>
Sean Holcomb 2 年之前
父節點
當前提交
85e98857e7
共有 1 個文件被更改,包括 0 次插入7 次删除
  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
 }
 }