|
@@ -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
|
|
|
}
|
|
}
|
|
|
|
|
|