From fbc48792bf2cf4daf0a4f9ff42ad57d6bf5434a2 Mon Sep 17 00:00:00 2001 From: behrooz Date: Sun, 2 Nov 2025 13:00:11 +0330 Subject: [PATCH] init --- application | 2 +- argohandler/argohandler.go | 8 ++++---- db/db.go | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/application b/application index cfaba19..1fd625e 160000 --- a/application +++ b/application @@ -1 +1 @@ -Subproject commit cfaba19c22308cbc6e0f140ae0c834bf0ac7d78c +Subproject commit 1fd625e22d7d2521d25cf09f386a51314b0c4046 diff --git a/argohandler/argohandler.go b/argohandler/argohandler.go index 5ca58b4..072ef86 100644 --- a/argohandler/argohandler.go +++ b/argohandler/argohandler.go @@ -61,8 +61,8 @@ var ( func InitializeClient() { once.Do(func() { - argocdServer := "192.168.2.172:32200" - argocdToken := "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJhcmdvY2QiLCJzdWIiOiJhZG1pbjphcGlLZXkiLCJuYmYiOjE3NDM4NTAwNzIsImlhdCI6MTc0Mzg1MDA3MiwianRpIjoiNWZhNmQ5MDgtMzljNi00ZWQ4LWE5YzgtMzI4YzMzYjkyNzk4In0.ZvhJk4L5vBQldtJyReKYXCQCWF8j8gHLZlY8PninSFA" + argocdServer := "130.185.77.247:30966" + argocdToken := "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJhcmdvY2QiLCJzdWIiOiJhZG1pbjphcGlLZXkiLCJuYmYiOjE3NjAwMjE1NjAsImlhdCI6MTc2MDAyMTU2MCwianRpIjoiZTdjMzMyNWQtZDU0Yy00M2Q0LWIzOGYtYjc3NGQ4OTcxZGZmIn0.35lU-UOwl3XxjvqEfnEXIhaVoug90-J2WWj5x0OihC0" config := apiclient.ClientOptions{ ServerAddr: argocdServer, @@ -106,9 +106,9 @@ func CreateApp(objectID string, clustername string, ControlPlane string, Platfor Name: uniqueClusterName, Namespace: namespace, Path: "vcluster-0.28.0", - Cluster: "bugx", + Cluster: "in-cluster", 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, } diff --git a/db/db.go b/db/db.go index fdd80a6..7cab915 100644 --- a/db/db.go +++ b/db/db.go @@ -14,7 +14,7 @@ var ( ) 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) if err != nil { log.Fatal(err)