@@ -6237,23 +6237,25 @@ details:"Reason: " + b("getErrorDetails")(a)
6237
6237
} ;
6238
6238
} ) ;
6239
6239
} ) ) ;
6240
- } ] ) , angular . module ( "openshiftConsole" ) . controller ( "CreateSecretController" , [ "$filter" , "$routeParams" , "$scope" , "$window" , "AlertMessageService" , "ApplicationGenerator" , "DataService" , "Navigate" , "ProjectsService" , function ( a , b , c , d , e , f , g , h , i ) {
6241
- c . alerts = { } , c . projectName = b . project , c . breadcrumbs = [ {
6242
- title :c . projectName ,
6243
- link :"project/" + c . projectName
6240
+ } ] ) , angular . module ( "openshiftConsole" ) . controller ( "CreateSecretController" , [ "$filter" , "$location" , "$ routeParams", "$scope" , "$window" , "AlertMessageService" , "ApplicationGenerator" , "DataService" , "Navigate" , "ProjectsService" , function ( a , b , c , d , e , f , g , h , i , j ) {
6241
+ d . alerts = { } , d . projectName = c . project , d . breadcrumbs = [ {
6242
+ title :d . projectName ,
6243
+ link :"project/" + d . projectName
6244
6244
} , {
6245
6245
title :"Secrets" ,
6246
- link :"project/" + c . projectName + "/browse/secrets"
6246
+ link :"project/" + d . projectName + "/browse/secrets"
6247
6247
} , {
6248
6248
title :"Create Secret"
6249
- } ] , i . get ( b . project ) . then ( _ . spread ( function ( b , d ) {
6250
- c . project = b , c . context = d , c . breadcrumbs [ 0 ] . title = a ( "displayName" ) ( b ) , c . postCreateAction = function ( a , b ) {
6251
- _ . each ( b , function ( a ) {
6252
- e . addAlert ( a ) ;
6253
- } ) , h . toResourceList ( "secrets" , c . projectName ) ;
6254
- } , c . cancel = function ( ) {
6255
- h . toResourceList ( "secrets" , c . projectName ) ;
6249
+ } ] ;
6250
+ var k = function ( ) {
6251
+ return c . then ? void b . url ( c . then ) :void i . toResourceList ( "secrets" , d . projectName ) ;
6256
6252
} ;
6253
+ j . get ( c . project ) . then ( _ . spread ( function ( b , c ) {
6254
+ d . project = b , d . context = c , d . breadcrumbs [ 0 ] . title = a ( "displayName" ) ( b ) , d . postCreateAction = function ( a , b ) {
6255
+ _ . each ( b , function ( a ) {
6256
+ f . addAlert ( a ) ;
6257
+ } ) , k ( ) ;
6258
+ } , d . cancel = k ;
6257
6259
} ) ) ;
6258
6260
} ] ) , angular . module ( "openshiftConsole" ) . controller ( "ConfigMapsController" , [ "$scope" , "$routeParams" , "AlertMessageService" , "DataService" , "LabelFilter" , "ProjectsService" , function ( a , b , c , d , e , f ) {
6259
6261
a . projectName = b . project , a . alerts = a . alerts || { } , a . loaded = ! 1 , a . labelSuggestions = { } , c . getAlerts ( ) . forEach ( function ( b ) {
@@ -8208,115 +8210,115 @@ n("An error occurred attaching the persistent volume claim to the " + a("humaniz
8208
8210
}
8209
8211
} ;
8210
8212
} ) ) ;
8211
- } ] ) , angular . module ( "openshiftConsole" ) . controller ( "AddConfigVolumeController" , [ "$filter" , "$routeParams" , "$scope" , "$window" , "APIService" , "BreadcrumbsService" , "DataService" , "Navigate" , "ProjectsService" , "StorageService" , function ( a , b , c , d , e , f , g , h , i , j ) {
8212
- if ( ! b . kind || ! b . name ) return void h . toErrorPage ( "Kind or name parameter missing." ) ;
8213
- var k = [ "Deployment" , "DeploymentConfig" , "ReplicaSet" , "ReplicationController" ] ;
8214
- if ( ! _ . includes ( k , b . kind ) ) return void h . toErrorPage ( "Volumes are not supported for kind " + b . kind + "." ) ;
8215
- var l = {
8216
- resource :e . kindToResource ( b . kind ) ,
8217
- group :b . group
8213
+ } ] ) , angular . module ( "openshiftConsole" ) . controller ( "AddConfigVolumeController" , [ "$filter" , "$location" , "$ routeParams", "$scope" , "$window" , "APIService" , "BreadcrumbsService" , "DataService" , "Navigate" , "ProjectsService" , "StorageService" , function ( a , b , c , d , e , f , g , h , i , j , k ) {
8214
+ if ( ! c . kind || ! c . name ) return void i . toErrorPage ( "Kind or name parameter missing." ) ;
8215
+ var l = [ "Deployment" , "DeploymentConfig" , "ReplicaSet" , "ReplicationController" ] ;
8216
+ if ( ! _ . includes ( l , c . kind ) ) return void i . toErrorPage ( "Volumes are not supported for kind " + c . kind + "." ) ;
8217
+ var m = {
8218
+ resource :f . kindToResource ( c . kind ) ,
8219
+ group :c . group
8218
8220
} ;
8219
- c . alerts = { } , c . projectName = b . project , c . kind = b . kind , c . name = b . name , c . attach = {
8221
+ d . alerts = { } , d . projectName = c . project , d . kind = c . kind , d . name = c . name , d . attach = {
8220
8222
allContainers :! 0 ,
8221
8223
pickKeys :! 1
8222
- } , c . forms = { } , c . breadcrumbs = f . getBreadcrumbs ( {
8223
- name :b . name ,
8224
- kind :b . kind ,
8225
- namespace :b . project ,
8224
+ } , d . forms = { } , d . breadcrumbs = g . getBreadcrumbs ( {
8225
+ name :c . name ,
8226
+ kind :c . kind ,
8227
+ namespace :c . project ,
8226
8228
subpage :"Add Config Files" ,
8227
8229
includeProject :! 0
8228
- } ) ;
8229
- var m = a ( "humanizeKind" ) ;
8230
- c . groupByKind = function ( a ) {
8231
- return m ( a . kind ) ;
8230
+ } ) , d . returnURL = b . url ( ) ;
8231
+ var n = a ( "humanizeKind" ) ;
8232
+ d . groupByKind = function ( a ) {
8233
+ return n ( a . kind ) ;
8232
8234
} ;
8233
- var n = function ( ) {
8234
- _ . set ( c , "attach.items" , [ { } ] ) ;
8235
- } ;
8236
- c . $watch ( "attach.source" , n ) ;
8237
8235
var o = function ( ) {
8238
- c . forms . addConfigVolumeForm . $setDirty ( ) ;
8239
- } ;
8240
- c . addItem = function ( ) {
8241
- c . attach . items . push ( { } ) , o ( ) ;
8242
- } , c . removeItem = function ( a ) {
8243
- c . attach . items . splice ( a , 1 ) , o ( ) ;
8244
- } , i . get ( b . project ) . then ( _ . spread ( function ( e , h ) {
8245
- c . project = e ;
8246
- var i = a ( "orderByDisplayName" ) , k = a ( "getErrorDetails" ) , m = a ( "generateName" ) , n = function ( a , b ) {
8247
- c . alerts [ "attach-persistent-volume-claim" ] = {
8236
+ _ . set ( d , "attach.items" , [ { } ] ) ;
8237
+ } ;
8238
+ d . $watch ( "attach.source" , o ) ;
8239
+ var p = function ( ) {
8240
+ d . forms . addConfigVolumeForm . $setDirty ( ) ;
8241
+ } ;
8242
+ d . addItem = function ( ) {
8243
+ d . attach . items . push ( { } ) , p ( ) ;
8244
+ } , d . removeItem = function ( a ) {
8245
+ d . attach . items . splice ( a , 1 ) , p ( ) ;
8246
+ } , j . get ( c . project ) . then ( _ . spread ( function ( b , f ) {
8247
+ d . project = b ;
8248
+ var i = a ( "orderByDisplayName" ) , j = a ( "getErrorDetails" ) , l = a ( "generateName" ) , n = function ( a , b ) {
8249
+ d . alerts [ "attach-persistent-volume-claim" ] = {
8248
8250
type :"error" ,
8249
8251
message :a ,
8250
8252
details :b
8251
8253
} ;
8252
8254
} ;
8253
- g . get ( l , b . name , h , {
8255
+ h . get ( m , c . name , f , {
8254
8256
errorNotification :! 1
8255
8257
} ) . then ( function ( a ) {
8256
- c . targetObject = a , c . breadcrumbs = f . getBreadcrumbs ( {
8258
+ d . targetObject = a , d . breadcrumbs = g . getBreadcrumbs ( {
8257
8259
object :a ,
8258
- project :e ,
8260
+ project :b ,
8259
8261
subpage :"Add Config Files" ,
8260
8262
includeProject :! 0
8261
8263
} ) ;
8262
8264
} , function ( a ) {
8263
- c . error = a ;
8264
- } ) , g . list ( "configmaps" , h , null , {
8265
+ d . error = a ;
8266
+ } ) , h . list ( "configmaps" , f , null , {
8265
8267
errorNotification :! 1
8266
8268
} ) . then ( function ( a ) {
8267
- c . configMaps = i ( a . by ( "metadata.name" ) ) ;
8269
+ d . configMaps = i ( a . by ( "metadata.name" ) ) ;
8268
8270
} , function ( a ) {
8269
- return 403 === a . status ? void ( c . configMaps = [ ] ) :void n ( "Could not load config maps" , k ( a ) ) ;
8270
- } ) , g . list ( "secrets" , h , null , {
8271
+ return 403 === a . status ? void ( d . configMaps = [ ] ) :void n ( "Could not load config maps" , j ( a ) ) ;
8272
+ } ) , h . list ( "secrets" , f , null , {
8271
8273
errorNotification :! 1
8272
8274
} ) . then ( function ( a ) {
8273
- c . secrets = i ( a . by ( "metadata.name" ) ) ;
8275
+ d . secrets = i ( a . by ( "metadata.name" ) ) ;
8274
8276
} , function ( a ) {
8275
- return 403 === a . status ? void ( c . secrets = [ ] ) :void n ( "Could not load secrets" , k ( a ) ) ;
8277
+ return 403 === a . status ? void ( d . secrets = [ ] ) :void n ( "Could not load secrets" , j ( a ) ) ;
8276
8278
} ) ;
8277
8279
var o = function ( a ) {
8278
- return c . attach . allContainers || c . attach . containers [ a . name ] ;
8280
+ return d . attach . allContainers || d . attach . containers [ a . name ] ;
8279
8281
} , p = function ( ) {
8280
- var a = _ . get ( c , "targetObject.spec.template" ) ;
8281
- c . existingMountPaths = j . getMountPaths ( a , o ) ;
8282
+ var a = _ . get ( d , "targetObject.spec.template" ) ;
8283
+ d . existingMountPaths = k . getMountPaths ( a , o ) ;
8282
8284
} ;
8283
- c . $watchGroup ( [ "targetObject" , "attach.allContainers" ] , p ) , c . $watch ( "attach.containers" , p , ! 0 ) ;
8285
+ d . $watchGroup ( [ "targetObject" , "attach.allContainers" ] , p ) , d . $watch ( "attach.containers" , p , ! 0 ) ;
8284
8286
var q = function ( ) {
8285
- var a = _ . map ( c . attach . items , "path" ) ;
8286
- c . itemPaths = _ . compact ( a ) ;
8287
+ var a = _ . map ( d . attach . items , "path" ) ;
8288
+ d . itemPaths = _ . compact ( a ) ;
8287
8289
} ;
8288
- c . $watch ( "attach.items" , q , ! 0 ) , c . addVolume = function ( ) {
8289
- if ( ! c . forms . addConfigVolumeForm . $invalid ) {
8290
- var e = c . targetObject , f = _ . get ( c , "attach.source" ) , i = _ . get ( e , "spec.template" ) , j = m ( "volume-" ) , p = _ . get ( c , "attach.mountPath" ) , q = {
8291
- name :j ,
8290
+ d . $watch ( "attach.items" , q , ! 0 ) , d . addVolume = function ( ) {
8291
+ if ( ! d . forms . addConfigVolumeForm . $invalid ) {
8292
+ var b = d . targetObject , g = _ . get ( d , "attach.source" ) , i = _ . get ( b , "spec.template" ) , k = l ( "volume-" ) , p = _ . get ( d , "attach.mountPath" ) , q = {
8293
+ name :k ,
8292
8294
mountPath :p
8293
8295
} ;
8294
- "Secret" === f . kind && ( q . readOnly = ! 0 ) , _ . each ( i . spec . containers , function ( a ) {
8296
+ "Secret" === g . kind && ( q . readOnly = ! 0 ) , _ . each ( i . spec . containers , function ( a ) {
8295
8297
o ( a ) && ( a . volumeMounts = a . volumeMounts || [ ] , a . volumeMounts . push ( q ) ) ;
8296
8298
} ) ;
8297
8299
var r , s = {
8298
- name :j
8300
+ name :k
8299
8301
} ;
8300
- switch ( c . attach . pickKeys && ( r = c . attach . items ) , f . kind ) {
8302
+ switch ( d . attach . pickKeys && ( r = d . attach . items ) , g . kind ) {
8301
8303
case "ConfigMap" :
8302
8304
s . configMap = {
8303
- name :f . metadata . name ,
8305
+ name :g . metadata . name ,
8304
8306
items :r
8305
8307
} ;
8306
8308
break ;
8307
8309
8308
8310
case "Secret" :
8309
8311
s . secret = {
8310
- secretName :f . metadata . name ,
8312
+ secretName :g . metadata . name ,
8311
8313
items :r
8312
8314
} ;
8313
8315
}
8314
- i . spec . volumes = i . spec . volumes || [ ] , i . spec . volumes . push ( s ) , c . alerts = { } , c . disableInputs = ! 0 , g . update ( l , e . metadata . name , c . targetObject , h ) . then ( function ( ) {
8315
- d . history . back ( ) ;
8316
- } , function ( d ) {
8317
- c . disableInputs = ! 1 ;
8318
- var e = a ( "humanizeKind" ) , g = e ( f . kind ) , h = e ( b . kind ) ;
8319
- n ( "An error occurred attaching the " + g + " to the " + h + "." , k ( d ) ) ;
8316
+ i . spec . volumes = i . spec . volumes || [ ] , i . spec . volumes . push ( s ) , d . alerts = { } , d . disableInputs = ! 0 , h . update ( m , b . metadata . name , d . targetObject , f ) . then ( function ( ) {
8317
+ e . history . back ( ) ;
8318
+ } , function ( b ) {
8319
+ d . disableInputs = ! 1 ;
8320
+ var e = a ( "humanizeKind" ) , f = e ( g . kind ) , h = e ( c . kind ) ;
8321
+ n ( "An error occurred attaching the " + f + " to the " + h + "." , j ( b ) ) ;
8320
8322
} ) ;
8321
8323
}
8322
8324
} ;
@@ -14101,7 +14103,9 @@ return _.isRegExp(a) ? a.source :_.escapeRegExp(a);
14101
14103
} ) . join ( "|" ) , f = new RegExp ( "(" + e + ")" , "ig" ) ;
14102
14104
return d . replace ( f , "<mark>$&</mark>" ) ;
14103
14105
} ;
14104
- } ] ) , angular . module ( "openshiftConsole" ) . filter ( "camelToLower" , function ( ) {
14106
+ } ] ) . filter ( "encodeURIComponent" , function ( ) {
14107
+ return window . encodeURIComponent ;
14108
+ } ) , angular . module ( "openshiftConsole" ) . filter ( "camelToLower" , function ( ) {
14105
14109
return function ( a ) {
14106
14110
return a ? _ . startCase ( a ) . toLowerCase ( ) :a ;
14107
14111
} ;
0 commit comments