This commit is contained in:
Ybehrooz
2025-05-20 20:07:46 +03:30
parent 7bc33a8808
commit 965d6900be
7 changed files with 28 additions and 33 deletions

View File

@@ -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 == "" {