fix issues

This commit is contained in:
Ybehrooz
2025-08-30 20:08:19 +03:30
parent 36a36a232f
commit 06b7aaa548
3 changed files with 4 additions and 1 deletions

View File

@@ -271,6 +271,7 @@ func updateConfig(objectID string, configStrings string, namespace string) {
"$set": bson.M{
"cluster_config": configStrings,
"namespace": namespace,
"EndPoine": "https://" + namespace + ".bugx.ir",
},
}
@@ -365,6 +366,7 @@ func ListUserClusters(userID string) (error, []Clusters) {
Name: app.Name,
Status: string(app.Status.Health.Status),
ClusterID: strings.Split(string(app.ObjectMeta.UID), "-")[0],
EndPoint: "https://" + app.Spec.Destination.Namespace + ".bugx.ir",
}
clusters = append(clusters, newCluster)
}