This commit is contained in:
Ybehrooz
2025-07-13 20:23:02 +03:30
parent 0d366c8bab
commit e3bce3715b
3 changed files with 5 additions and 20 deletions

View File

@@ -171,28 +171,12 @@ func CreateApp(objectID string, clustername string, ControlPlane string, Platfor
Value: app.Namespace + ".bugx.ir", Value: app.Namespace + ".bugx.ir",
}, },
{ {
Name: "sync.toHost.serviceAccounts.enabled", Name: "controlPlane.proxy.extraSANs[0]",
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", Value: app.Namespace + ".bugx.ir",
}, },
{ {
Name: "exportKubeConfig.secret.name", Name: "exportKubeConfig.server",
Value: app.Namespace + "kubeconfig", Value: "https://" + app.Namespace + ".bugx.ir",
}, },
}, },
}, },

View File

@@ -97,6 +97,7 @@ func Connect(w http.ResponseWriter, r *http.Request) {
} }
w.Header().Set("Content-Type", "application/x-yaml") w.Header().Set("Content-Type", "application/x-yaml")
w.Header().Set("Content-Disposition", `attachment; filename="`+clusterName+`.yaml"`)
w.Write(decoded) w.Write(decoded)
} }