This commit is contained in:
behrooz
2025-11-02 13:00:11 +03:30
parent 44c75b2f5c
commit fbc48792bf
3 changed files with 6 additions and 6 deletions

View File

@@ -61,8 +61,8 @@ var (
func InitializeClient() { func InitializeClient() {
once.Do(func() { once.Do(func() {
argocdServer := "192.168.2.172:32200" argocdServer := "130.185.77.247:30966"
argocdToken := "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJhcmdvY2QiLCJzdWIiOiJhZG1pbjphcGlLZXkiLCJuYmYiOjE3NDM4NTAwNzIsImlhdCI6MTc0Mzg1MDA3MiwianRpIjoiNWZhNmQ5MDgtMzljNi00ZWQ4LWE5YzgtMzI4YzMzYjkyNzk4In0.ZvhJk4L5vBQldtJyReKYXCQCWF8j8gHLZlY8PninSFA" argocdToken := "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJhcmdvY2QiLCJzdWIiOiJhZG1pbjphcGlLZXkiLCJuYmYiOjE3NjAwMjE1NjAsImlhdCI6MTc2MDAyMTU2MCwianRpIjoiZTdjMzMyNWQtZDU0Yy00M2Q0LWIzOGYtYjc3NGQ4OTcxZGZmIn0.35lU-UOwl3XxjvqEfnEXIhaVoug90-J2WWj5x0OihC0"
config := apiclient.ClientOptions{ config := apiclient.ClientOptions{
ServerAddr: argocdServer, ServerAddr: argocdServer,
@@ -106,9 +106,9 @@ func CreateApp(objectID string, clustername string, ControlPlane string, Platfor
Name: uniqueClusterName, Name: uniqueClusterName,
Namespace: namespace, Namespace: namespace,
Path: "vcluster-0.28.0", Path: "vcluster-0.28.0",
Cluster: "bugx", Cluster: "in-cluster",
Server: "https://kubernetes.default.svc", Server: "https://kubernetes.default.svc",
RepoURL: "http://192.168.2.20:8015/root/application.git", RepoURL: "http://130.185.77.247:31300/gitea_admin/application.git",
UserID: userID, UserID: userID,
} }

View File

@@ -14,7 +14,7 @@ var (
) )
func InitDB() { func InitDB() {
clientOptions := options.Client().ApplyURI("mongodb://root:secret123@130.185.77.247:31141/") clientOptions := options.Client().ApplyURI("mongodb://root:secret123@130.185.77.247:32669/")
client, err := mongo.Connect(context.TODO(), clientOptions) client, err := mongo.Connect(context.TODO(), clientOptions)
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)