add worker ndoes
This commit is contained in:
5
db/db.go
5
db/db.go
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user