Initial k8s support in libplayground (#216)

* Initial k8s support in libplayground

* Make tasks never give up + custom event for k8s cluster status
This commit is contained in:
Marcos Nils
2017-11-16 18:23:13 -03:00
committed by GitHub
parent dcb2bc7500
commit 3481442768
24 changed files with 1006 additions and 58 deletions

13
scheduler/task/types.go Normal file
View File

@@ -0,0 +1,13 @@
package task
type ClusterStatus struct {
IsManager bool `json:"is_manager"`
IsWorker bool `json:"is_worker"`
Instance string `json:"instance"`
}
type ClusterPorts struct {
Manager string `json:"manager"`
Instances []string `json:"instances"`
Ports []int `json:"ports"`
}