Parcourir la source

Merge pull request #2558 from Sean-Holcomb/sth/cc-remove-env-check

remove env check
Sean Holcomb il y a 2 ans
Parent
commit
331b9a4029
1 fichiers modifiés avec 0 ajouts et 7 suppressions
  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
 }
 }