add worker ndoes

This commit is contained in:
Ybehrooz
2025-08-26 19:52:27 +03:30
parent d3df2b60f0
commit 821ead675f
5 changed files with 45 additions and 4 deletions

View File

@@ -9,8 +9,8 @@ import (
)
var (
Client *mongo.Client
UserCollection, Vclusters_details, Host_cluster_details *mongo.Collection
Client *mongo.Client
UserCollection, Vclusters_details, Host_cluster_details, Worker_nodes_plan *mongo.Collection
)
func InitDB() {
@@ -23,4 +23,5 @@ func InitDB() {
UserCollection = client.Database("vcluster").Collection("users")
Vclusters_details = client.Database("vcluster").Collection("vclusters_details")
Host_cluster_details = client.Database("vcluster").Collection("hostdetail")
Worker_nodes_plan = client.Database("vcluster").Collection("worker_nodes_plans")
}