@ -90,7 +90,7 @@ module Kubernetes {
id : getName ( next )
id : getName ( next )
} , undefined , ( ) = > {
} , undefined , ( ) = > {
if ( next . metadata . labels . style === "oracle" ) {
if ( next . metadata . labels . style === "oracle" ) {
Kubernetes . connectOracle ( $http , $timeout , "/java/console/api/cancelOracleConection" , "delete" , getName( next) , 0 ) ;
Kubernetes . connectOracle ( $http , $timeout , "/java/console/api/cancelOracleConection" , "delete" , next, 0 ) ;
}
}
deleteSelected ( selected , selected . shift ( ) ) ;
deleteSelected ( selected , selected . shift ( ) ) ;
} , ( error ) = > {
} , ( error ) = > {
@ -143,7 +143,7 @@ module Kubernetes {
if ( next ) {
if ( next ) {
Kubernetes . resizeController ( $http , KubernetesApiURL , next , 0 , ( ) = > {
Kubernetes . resizeController ( $http , KubernetesApiURL , next , 0 , ( ) = > {
if ( next . metadata . labels . style === "oracle" ) {
if ( next . metadata . labels . style === "oracle" ) {
Kubernetes . connectOracle ( $http , $timeout , "/java/console/api/cancelOracleConection" , "stop" , getName( next) , 0 ) ;
Kubernetes . connectOracle ( $http , $timeout , "/java/console/api/cancelOracleConection" , "stop" , next, 0 ) ;
}
}
stopSelected ( selected , selected . shift ( ) ) ;
stopSelected ( selected , selected . shift ( ) ) ;
} ) ;
} ) ;
@ -168,13 +168,13 @@ module Kubernetes {
if ( next ) {
if ( next ) {
if ( next . $replicas === 0 )
if ( next . $replicas === 0 )
Kubernetes . resizeController ( $http , KubernetesApiURL , next , 1 , ( ) = > {
Kubernetes . resizeController ( $http , KubernetesApiURL , next , 1 , ( ) = > {
console . log ( "restart " + next . metadata . name ) ;
Kubernetes . connectOracle ( $http , $timeout , "/java/console/api/connectOracle" , "reStart" , next , 200 ) ;
Kubernetes . connectOracle ( $http , $timeout , "/java/console/api/connectOracle" , "reStart" , getName ( next ) , 0 ) ;
startSelected ( selected , selected . shift ( ) ) ;
startSelected ( selected , selected . shift ( ) ) ;
} ) ;
} ) ;
}
}
}
}
startSelected ( selected , selected . shift ( ) ) ;
startSelected ( selected , selected . shift ( ) ) ;
} ;
} ;
$scope . extractClick = {
$scope . extractClick = {