This commit is contained in:
Ybehrooz
2025-06-08 20:25:59 +03:30
parent 3f13dd031d
commit 0d366c8bab
3 changed files with 31 additions and 3 deletions

View File

@@ -163,9 +163,37 @@ func CreateApp(objectID string, clustername string, ControlPlane string, Platfor
Value: Memory, Value: Memory,
}, },
{ {
Name: "controlPlane.proxy.extraSANs[0]", Name: "controlPlane.ingress.enabled",
Value: "true",
},
{
Name: "controlPlane.ingress.host",
Value: app.Namespace + ".bugx.ir", 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",
},
}, },
}, },
}, },

View File

@@ -14,7 +14,7 @@ var (
) )
func InitDB() { 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) client, err := mongo.Connect(context.TODO(), clientOptions)
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)