init
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user