@@ -2129,10 +2129,11 @@ export class Message {
21292129 }
21302130 }
21312131 }
2132+ var port = 3000 ;
21322133 let livenessProbe : any = {
21332134 httpGet : {
21342135 path : "/livenessprobe" ,
2135- port : Config . port ,
2136+ port : 3000 ,
21362137 scheme : "HTTP"
21372138 } ,
21382139 initialDelaySeconds : Config . nodered_initial_liveness_delay ,
@@ -2156,7 +2157,7 @@ export class Message {
21562157 if ( ! api_ws_url . endsWith ( "/" ) ) api_ws_url += "/" ;
21572158
21582159
2159-
2160+ var port = 3000 ;
21602161 let saml_baseurl = Config . protocol + "://" + hostname + "/" ;
21612162
21622163 let _samlparsed = url . parse ( Config . saml_federation_metadata ) ;
@@ -2193,7 +2194,7 @@ export class Message {
21932194 if ( saml_federation_metadata == "https://pc.openiap.io/issue/FederationMetadata/2007-06/FederationMetadata.xml" ) {
21942195 saml_federation_metadata = "https://demo.openiap.io/issue/FederationMetadata/2007-06/FederationMetadata.xml"
21952196 }
2196- var port = 3000 ;
2197+
21972198
21982199 const _deployment = {
21992200 metadata : { name : name , namespace : namespace , labels : { billed : hasbilling . toString ( ) , userid : _id , app : name } } ,
@@ -2304,7 +2305,7 @@ export class Message {
23042305
23052306 let servicename = name ;
23062307 var test = / [ a - z ] ( [ - a - z 0 - 9 ] * [ a - z 0 - 9 ] ) ? / . exec ( servicename ) ;
2307- if ( test . index != 0 ) {
2308+ if ( test == null || test . index != 0 ) {
23082309 servicename = "nr" + name + "svc" ;
23092310 }
23102311
@@ -2423,7 +2424,8 @@ export class Message {
24232424 Logger . instanse . warn ( "_DeleteNoderedInstance: Did not find deployment for " + name + " in namespace " + namespace ) ;
24242425 }
24252426 let servicename = name ;
2426- if ( ! / [ a - z ] ( [ - a - z 0 - 9 ] * [ a - z 0 - 9 ] ) ? / . test ( servicename ) ) {
2427+ var test = / [ a - z ] ( [ - a - z 0 - 9 ] * [ a - z 0 - 9 ] ) ? / . exec ( servicename ) ;
2428+ if ( test == null || test . index != 0 ) {
24272429 servicename = "nr" + name + "svc" ;
24282430 }
24292431 const service = await KubeUtil . instance ( ) . GetService ( namespace , servicename ) ;
0 commit comments