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

View File

@@ -330,6 +330,20 @@
$scope.$apply();
});
socket.on('instance k8s status', function(status) {
if (!$scope.idx[status.instance]) {
return
}
if (status.is_manager) {
$scope.idx[status.instance].isK8sManager = true
} else if (status.is_worker) {
$scope.idx[status.instance].isK8sManager = false
} else {
$scope.idx[status.instance].isK8sManager = null
}
$scope.$apply();
});
socket.on('instance docker ports', function(status) {
if (!$scope.idx[status.instance]) {
return