Moving cluster struct factory from realis to clusters.

This commit is contained in:
Renan DelValle 2018-11-08 18:10:25 -08:00
parent 848b5f7971
commit b6effe66b7
No known key found for this signature in database
GPG key ID: C240AD6D6F443EC9

View file

@ -54,3 +54,14 @@ func LoadClusters(config string) (map[string]Cluster, error) {
return m, nil
}
func GetDefaultClusterFromZKUrl(zkURL string) *Cluster {
return &Cluster{
Name: "defaultCluster",
AuthMechanism: "UNAUTHENTICATED",
ZK: zkURL,
SchedZKPath: "/aurora/scheduler",
AgentRunDir: "latest",
AgentRoot: "/var/lib/mesos",
}
}