diff --git a/application b/application index bc18395..a6b37be 160000 --- a/application +++ b/application @@ -1 +1 @@ -Subproject commit bc18395eae7d7c21f0856aef3da694bd7afead43 +Subproject commit a6b37beb0c8cd28177d11c7385c77b50e9e5b39b diff --git a/argohandler/argohandler.go b/argohandler/argohandler.go index 9ecc83d..95dbdb0 100644 --- a/argohandler/argohandler.go +++ b/argohandler/argohandler.go @@ -163,9 +163,37 @@ func CreateApp(objectID string, clustername string, ControlPlane string, Platfor Value: Memory, }, { - Name: "controlPlane.proxy.extraSANs[0]", + Name: "controlPlane.ingress.enabled", + Value: "true", + }, + { + Name: "controlPlane.ingress.host", Value: app.Namespace + ".bugx.ir", }, + { + Name: "sync.toHost.serviceAccounts.enabled", + Value: "true", + }, + { + Name: "sync.fromHost.nodes.enabled", + Value: "true", + }, + { + Name: "sync.fromHost.nodes.clearImageStatus", + Value: "true", + }, + { + Name: "exportKubeConfig.context", + Value: app.Namespace + "-context", + }, + { + Name: "exportKubeConfig.server", + Value: app.Namespace + ".bugx.ir", + }, + { + Name: "exportKubeConfig.secret.name", + Value: app.Namespace + "kubeconfig", + }, }, }, }, diff --git a/db/db.go b/db/db.go index d458c18..df060b2 100644 --- a/db/db.go +++ b/db/db.go @@ -14,7 +14,7 @@ var ( ) func InitDB() { - clientOptions := options.Client().ApplyURI("mongodb://root:example@192.168.1.10:27017/") + clientOptions := options.Client().ApplyURI("mongodb://root:example@192.168.2.177:27017/") client, err := mongo.Connect(context.TODO(), clientOptions) if err != nil { log.Fatal(err)