@@ -6502,53 +6502,55 @@ statefulSets:b.by("metadata.name")
6502
6502
d . unwatchAll ( f ) ;
6503
6503
} ) ;
6504
6504
} ) ) ;
6505
- } ] ) , angular . module ( "openshiftConsole" ) . controller ( "StatefulSetController" , [ "$filter" , "$scope" , "$routeParams" , "AlertMessageService" , "BreadcrumbsService" , "DataService" , "ProjectsService" , function ( a , b , c , d , e , f , g ) {
6505
+ } ] ) , angular . module ( "openshiftConsole" ) . controller ( "StatefulSetController" , [ "$filter" , "$scope" , "$routeParams" , "AlertMessageService" , "BreadcrumbsService" , "DataService" , "MetricsService" , " ProjectsService", function ( a , b , c , d , e , f , g , h ) {
6506
6506
b . projectName = c . project , b . statefulSetName = c . statefulset , b . forms = { } , b . alerts = { } , b . breadcrumbs = e . getBreadcrumbs ( {
6507
6507
name :b . statefulSetName ,
6508
6508
kind :"statefulSet" ,
6509
6509
namespace :c . project
6510
6510
} ) , b . emptyMessage = "Loading..." ;
6511
- var h = a ( "altTextForValueFrom" ) , i = function ( a ) {
6511
+ var i = a ( "altTextForValueFrom" ) , j = function ( a ) {
6512
6512
return _ . each ( a . spec . template . spec . containers , function ( a ) {
6513
- _ . each ( a . env , h ) ;
6513
+ _ . each ( a . env , i ) ;
6514
6514
} ) , a ;
6515
6515
} ;
6516
6516
d . getAlerts ( ) . forEach ( function ( a ) {
6517
6517
b . alerts [ a . name ] = a . data ;
6518
6518
} ) , d . clearAlerts ( ) ;
6519
- var j , k = [ ] , l = function ( a , b ) {
6519
+ var k , l = [ ] , m = function ( a , b ) {
6520
6520
if ( a && b ) return b . select ( a ) ;
6521
- } , m = {
6521
+ } , n = {
6522
6522
resource :"statefulsets" ,
6523
6523
group :"apps" ,
6524
6524
version :"v1beta1"
6525
6525
} ;
6526
- g . get ( c . project ) . then ( _ . spread ( function ( a , c ) {
6527
- j = c , f . get ( m , b . statefulSetName , c ) . then ( function ( d ) {
6526
+ g . isAvailable ( ) . then ( function ( a ) {
6527
+ b . metricsAvailable = a ;
6528
+ } ) , h . get ( c . project ) . then ( _ . spread ( function ( a , c ) {
6529
+ k = c , f . get ( n , b . statefulSetName , c ) . then ( function ( d ) {
6528
6530
angular . extend ( b , {
6529
- statefulSet :i ( d ) ,
6531
+ statefulSet :j ( d ) ,
6530
6532
project :a ,
6531
6533
projectContext :c ,
6532
6534
loaded :! 0 ,
6533
6535
isScalable :function ( ) {
6534
6536
return ! 1 ;
6535
6537
} ,
6536
6538
scale :function ( ) { }
6537
- } ) , k . push ( f . watchObject ( m , b . statefulSetName , c , function ( a ) {
6539
+ } ) , l . push ( f . watchObject ( n , b . statefulSetName , c , function ( a ) {
6538
6540
angular . extend ( b , {
6539
- resourceGroupVersion :m ,
6540
- statefulSet :i ( a )
6541
+ resourceGroupVersion :n ,
6542
+ statefulSet :j ( a )
6541
6543
} ) ;
6542
6544
} ) ) ;
6543
6545
var e , g ;
6544
6546
b . $watch ( "statefulSet.spec.selector" , function ( ) {
6545
- g = new LabelSelector ( b . statefulSet . spec . selector ) , b . podsForStatefulSet = l ( e , g ) ;
6546
- } , ! 0 ) , k . push ( f . watch ( "pods" , c , function ( a ) {
6547
- e = a . by ( "metadata.name" ) , b . podsForStatefulSet = l ( e , g ) ;
6547
+ g = new LabelSelector ( b . statefulSet . spec . selector ) , b . podsForStatefulSet = m ( e , g ) ;
6548
+ } , ! 0 ) , l . push ( f . watch ( "pods" , c , function ( a ) {
6549
+ e = a . by ( "metadata.name" ) , b . podsForStatefulSet = m ( e , g ) ;
6548
6550
} ) ) ;
6549
6551
} ) ;
6550
6552
} ) ) , b . $on ( "$destroy" , function ( ) {
6551
- f . unwatchAll ( k ) ;
6553
+ f . unwatchAll ( l ) ;
6552
6554
} ) ;
6553
6555
} ] ) , angular . module ( "openshiftConsole" ) . controller ( "ServicesController" , [ "$routeParams" , "$scope" , "AlertMessageService" , "DataService" , "ProjectsService" , "$filter" , "LabelFilter" , "Logger" , function ( a , b , c , d , e , f , g , h ) {
6554
6556
b . projectName = a . project , b . services = { } , b . unfilteredServices = { } , b . routesByService = { } , b . routes = { } , b . labelSuggestions = { } , b . alerts = b . alerts || { } , b . emptyMessage = "Loading..." , b . emptyMessageRoutes = "Loading..." , c . getAlerts ( ) . forEach ( function ( a ) {
0 commit comments