diff --git a/application b/application index a6b37be..bfd8029 160000 --- a/application +++ b/application @@ -1 +1 @@ -Subproject commit a6b37beb0c8cd28177d11c7385c77b50e9e5b39b +Subproject commit bfd802911d58a0318c69d750b92b12b3de9a6f5d diff --git a/argohandler/argohandler.go b/argohandler/argohandler.go index 95dbdb0..9e3071c 100644 --- a/argohandler/argohandler.go +++ b/argohandler/argohandler.go @@ -171,28 +171,12 @@ func CreateApp(objectID string, clustername string, ControlPlane string, Platfor 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", + Name: "controlPlane.proxy.extraSANs[0]", Value: app.Namespace + ".bugx.ir", }, { - Name: "exportKubeConfig.secret.name", - Value: app.Namespace + "kubeconfig", + Name: "exportKubeConfig.server", + Value: "https://" + app.Namespace + ".bugx.ir", }, }, }, diff --git a/handler/handler.go b/handler/handler.go index 6218f28..779f16d 100644 --- a/handler/handler.go +++ b/handler/handler.go @@ -97,6 +97,7 @@ func Connect(w http.ResponseWriter, r *http.Request) { } w.Header().Set("Content-Type", "application/x-yaml") + w.Header().Set("Content-Disposition", `attachment; filename="`+clusterName+`.yaml"`) w.Write(decoded) }