|
|
|
@ -189,15 +189,20 @@ module Kubernetes {
|
|
|
|
|
$scope.reStartPrompt = (selected) => {
|
|
|
|
|
function startSelected(selected:Array<KubePod>, next:KubePod){
|
|
|
|
|
if(next){
|
|
|
|
|
if(next.$replicas === 0)
|
|
|
|
|
Kubernetes.resizeController($http, KubernetesApiURL, next, 1, () => {
|
|
|
|
|
Kubernetes.connectOracle($http, $timeout, "/java/console/api/connectOracle", "reStart", next, 200);
|
|
|
|
|
startSelected(selected, selected.shift());
|
|
|
|
|
});
|
|
|
|
|
console.log(getLabels(next).status);
|
|
|
|
|
if(next.$replicas === 0){
|
|
|
|
|
Kubernetes.resizeController($http, KubernetesApiURL, next, 1, () => {
|
|
|
|
|
Kubernetes.connectOracle($http, $timeout, "/java/console/api/connectOracle", "reStart", next, 200);
|
|
|
|
|
startSelected(selected, selected.shift());
|
|
|
|
|
});
|
|
|
|
|
}else{
|
|
|
|
|
if(getLabels(next).status == "1")
|
|
|
|
|
Kubernetes.connectOracle($http, $timeout, "/java/console/api/connectOracle", "reStart", next, 200);
|
|
|
|
|
startSelected(selected, selected.shift());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
startSelected(selected, selected.shift());
|
|
|
|
|
|
|
|
|
|
startSelected(selected, selected.shift());
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
$scope.extractClick = {
|
|
|
|
|