File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -730,8 +730,15 @@ export class Message {
730730 // var hostname = Config.nodered_domain_schema.replace("$nodered_id$", name);
731731
732732 var list = await KubeUtil . instance ( ) . CoreV1Api . listNamespacedPod ( namespace ) ;
733+
733734 if ( list . body . items . length > 0 ) {
734- msg . result = list . body . items [ 0 ] ;
735+ var item = list . body . items [ i ] ;
736+ if ( item . metadata . labels . app === ( name + "nodered" ) ) {
737+ msg . result = item ;
738+ cli . _logger . debug ( "GetNoderedInstance:" + name + " found one" ) ;
739+ }
740+ } else {
741+ cli . _logger . warn ( "GetNoderedInstance: found NO Namespaced Pods ???" ) ;
735742 }
736743 } catch ( error ) {
737744 this . data = "" ;
Original file line number Diff line number Diff line change @@ -1572,6 +1572,7 @@ module openflow {
15721572 await api . RegisterQueue ( ) ;
15731573 this . noderedurl = "https://" + WebSocketClient . nodered_domain_schema . replace ( "$nodered_id$" , WebSocketClient . user . username ) ;
15741574 this . instance = await api . GetNoderedInstance ( ) ;
1575+ console . log ( "GetNoderedInstance:" ) ;
15751576 console . log ( this . instance ) ;
15761577 if ( ! this . $scope . $$phase ) { this . $scope . $apply ( ) ; }
15771578 } ) ;
Original file line number Diff line number Diff line change 1- 0.0.203
1+ 0.0.204
You can’t perform that action at this time.
0 commit comments