fix
This commit is contained in:
@@ -5,10 +5,9 @@ import (
|
||||
"encoding/json"
|
||||
"main/argohandler"
|
||||
"main/db"
|
||||
"net/http"
|
||||
"log"
|
||||
"net/http"
|
||||
|
||||
// "github.com/gorilla/mux"
|
||||
// "github.com/gorilla/mux"
|
||||
"go.mongodb.org/mongo-driver/bson"
|
||||
"go.mongodb.org/mongo-driver/bson/primitive"
|
||||
)
|
||||
@@ -37,10 +36,6 @@ func CreateClusterHandler(w http.ResponseWriter, r *http.Request) {
|
||||
var header Header
|
||||
header.Authorization = r.Header.Get("Authorization")
|
||||
|
||||
log.Fatal("--------------")
|
||||
log.Fatal(r.Header.Get("Authorization"))
|
||||
log.Fatal("--------------")
|
||||
|
||||
// vclusterCollection := db.Vclusters_details.FindOne(context.TODO(), bson.M{"name": Cluster.Name}).Decode(&existsCluster)
|
||||
|
||||
if cluster.Name == "" || cluster.ControlPlane == "" || cluster.PlatformVersion == "" || cluster.Cpu == "" || cluster.Memory == "" {
|
||||
|
||||
Reference in New Issue
Block a user