Achilleas Tzenetopoulos 5 years ago
parent
commit
cf89f71acc

+ 2 - 2
kubernetes-v1.15.4/pkg/scheduler/algorithm/priorities/custom_resource_allocation.go

@@ -94,13 +94,13 @@ func customResourceScorer(nodeName string) int64 {
 
 
 	//Access the Database
 	//Access the Database
 	DBstring := cfg.Database.Username + ":" + cfg.Database.Password + "@tcp(" + cfg.Server.Host + ":" + cfg.Server.Port + ")/" + cfg.Database.Name
 	DBstring := cfg.Database.Username + ":" + cfg.Database.Password + "@tcp(" + cfg.Server.Host + ":" + cfg.Server.Port + ")/" + cfg.Database.Name
-	db, err := sql.Open(cfg.Database.Type, DBstring)
+	_, err := sql.Open(cfg.Database.Type, DBstring)
 	if err != nil {
 	if err != nil {
 		panic(err.Error())
 		panic(err.Error())
 	}
 	}
 
 
 	//TODO InfluxDB
 	//TODO InfluxDB
-	c, err := client.NewHttpClient(client.HTTPConfig{
+	c, err := client.NewHTTPClient(client.HTTPConfig{
 		Addr: "http://" + cfg.Server.Host + ":" + cfg.Server.Port + "",
 		Addr: "http://" + cfg.Server.Host + ":" + cfg.Server.Port + "",
 	})
 	})
 	if err != nil {
 	if err != nil {