@@ -310,7 +310,7 @@ timeoutSeconds:1,
310
310
periodSeconds :10 ,
311
311
successThreshold :1 ,
312
312
failureThreshold :3
313
- } ) :( i . livenessProbe = {
313
+ } ) :i . livenessProbe = {
314
314
httpGet :{
315
315
path :"/" ,
316
316
port :8081 ,
@@ -320,11 +320,7 @@ timeoutSeconds:1,
320
320
periodSeconds :10 ,
321
321
successThreshold :1 ,
322
322
failureThreshold :3
323
- } , i . resources = {
324
- limits :{
325
- memory :"700Mi"
326
- }
327
- } ) ;
323
+ } ;
328
324
var j ;
329
325
j = a . scaling . autoscaling ? a . scaling . minReplicas || 1 :a . scaling . replicas ;
330
326
var k = {
@@ -482,7 +478,7 @@ return c.create("routes", null, f, b);
482
478
function s ( a , d ) {
483
479
var e = b . defer ( ) , f = { } ;
484
480
return f . clusterName = a . clusterName , a . configName ? c . get ( "configmaps" , a . configName , d , null ) . then ( function ( b ) {
485
- b . data . workercount && ( f . workerCount = parseInt ( b . data . workercount ) ) , b . data . mastercount && ( f . masterCount = parseInt ( b . data . mastercount ) ) , b . data . sparkmasterconfig && ( f . masterConfigName = b . data . sparkmasterconfig ) , b . data . sparkworkerconfig && ( f . workerConfigName = b . data . sparkworkerconfig ) , b . data . sparkimage && ( f . sparkImage = b . data . sparkimage ) , b . data . exposeui && ( f . exposewebui = b . data . exposeui ) , b . data . metrics && ( f . metrics = b . data . metrics ) , a . workerCount && a . workerCount >= 0 && ( f . workerCount = a . workerCount ) , a . workerConfigName && ( f . workerConfigName = a . workerConfigName ) , a . masterConfigName && ( f . masterConfigName = a . masterConfigName ) , a . sparkImage && ( f . sparkImage = a . sparkImage ) , e . resolve ( f ) ;
481
+ b . data . workercount && ( f . workerCount = parseInt ( b . data . workercount ) ) , b . data . mastercount && ( f . masterCount = parseInt ( b . data . mastercount ) ) , b . data . sparkmasterconfig && ( f . masterConfigName = b . data . sparkmasterconfig ) , b . data . sparkworkerconfig && ( f . workerConfigName = b . data . sparkworkerconfig ) , b . data . sparkimage ? a . sparkImage && ! a . sparkDefaultUsed ? f . sparkImage = a . sparkImage : f . sparkImage = b . data . sparkimage : f . sparkImage = a . sparkImage , b . data . exposeui && ( f . exposewebui = b . data . exposeui ) , b . data . metrics && ( f . metrics = b . data . metrics ) , a . workerCount && a . workerCount >= 0 && ( f . workerCount = a . workerCount ) , a . workerConfigName && ( f . workerConfigName = a . workerConfigName ) , a . masterConfigName && ( f . masterConfigName = a . masterConfigName ) , e . resolve ( f ) ;
486
482
} ) [ "catch" ] ( function ( ) {
487
483
a . workerConfigName && ( f . workerConfigName = a . workerConfigName ) , a . masterConfigName && ( f . masterConfigName = a . masterConfigName ) , a . sparkImage && ( f . sparkImage = a . sparkImage ) , f . exposewebui = a . exposewebui , f . metrics = a . metrics , f . workerCount = a . workerCount , f . masterCount = a . masterCount , e . resolve ( f ) ;
488
484
} ) :( a . workerConfigName && ( f . workerConfigName = a . workerConfigName ) , a . masterConfigName && ( f . masterConfigName = a . masterConfigName ) , a . sparkImage && ( f . sparkImage = a . sparkImage ) , f . exposewebui = a . exposewebui , f . metrics = a . metrics , f . workerCount = a . workerCount , f . masterCount = a . masterCount , e . resolve ( f ) ) , f . workerCount < 0 && ( f . workerCount = 1 ) , e . promise ;
@@ -579,7 +575,8 @@ masterConfigName:c ? b.fields.masterconfigname :null,
579
575
workerConfigName :c ? b . fields . workerconfigname :null ,
580
576
exposewebui :! c || b . fields . exposewebui ,
581
577
metrics :! c || b . fields . enablemetrics ,
582
- sparkImage :c && "" !== b . fields . sparkimage ? b . fields . sparkimage :"radanalyticsio/openshift-spark"
578
+ sparkImage :c && "" !== b . fields . sparkimage ? b . fields . sparkimage :"radanalyticsio/openshift-spark" ,
579
+ sparkDefaultUsed :! b . advanced || "" === b . fields . sparkimage
583
580
} ;
584
581
return f . get ( h . project ) . then ( _ . spread ( function ( c , f ) {
585
582
return b . project = c , b . context = f , a . all ( [ j ( g . clusterName , g . workersInt ) , i ( g . configName , "cluster-config-name" , "cluster configuration" , b . context ) , i ( g . masterConfigName , "cluster-masterconfig-name" , "master spark configuration" , b . context ) , i ( g . workerConfigName , "cluster-workerconfig-name" , "worker spark configuration" , b . context ) ] ) . then ( function ( ) {
0 commit comments