@@ -530,7 +530,7 @@ screenSmMin:768,
530
530
screenMdMin :992 ,
531
531
screenLgMin :1200 ,
532
532
screenXlgMin :1600
533
- } ) . constant ( "SOURCE_URL_PATTERN" , / ^ ( ( f t p | h t t p | h t t p s | g i t | s s h ) : \/ \/ ( \w + : { 0 , 1 } [ ^ \s @ ] * @ ) | g i t @ ) ? ( [ ^ \s @ ] + ) ( : [ 0 - 9 ] + ) ? ( \/ | \/ ( [ \w # ! : . ? + = & % @ ! \- \/ ] ) ) ? $ / ) . constant ( "IS_IOS" , / i P a d | i P h o n e | i P o d / . test ( navigator . userAgent ) && ! window . MSStream ) . constant ( "amTimeAgoConfig" , {
533
+ } ) . constant ( "SOURCE_URL_PATTERN" , / ^ [ a - z ] [ a - z 0 - 9 + . - @ ] * : ( \/ \/ ) ? [ 0 - 9 a - z _ - ] + / i ) . constant ( "IS_IOS" , / i P a d | i P h o n e | i P o d / . test ( navigator . userAgent ) && ! window . MSStream ) . constant ( "amTimeAgoConfig" , {
534
534
titleFormat :"LLL"
535
535
} ) . config ( [ "$httpProvider" , "AuthServiceProvider" , "RedirectLoginServiceProvider" , "AUTH_CFG" , "API_CFG" , "kubernetesContainerSocketProvider" , function ( a , b , c , d , e , f ) {
536
536
a . interceptors . push ( "AuthInterceptor" ) , b . LoginService ( "RedirectLoginService" ) , b . LogoutService ( "DeleteTokenLogoutService" ) , b . UserStore ( "LocalStorageUserStore" ) , c . OAuthClientID ( d . oauth_client_id ) , c . OAuthAuthorizeURI ( d . oauth_authorize_uri ) , c . OAuthRedirectURI ( URI ( d . oauth_redirect_base ) . segment ( "oauth" ) . toString ( ) ) , f . WebSocketFactory = "ContainerWebSocket" ;
@@ -6943,7 +6943,7 @@ details:a("getErrorDetails")(b)
6943
6943
e . unwatchAll ( i ) ;
6944
6944
} ) ;
6945
6945
} ) ) ;
6946
- } ] ) , angular . module ( "openshiftConsole" ) . controller ( "EditDeploymentConfigController" , [ "$scope" , "$filter" , "$location" , "$routeParams" , "$uibModal" , "AlertMessageService" , "AuthorizationService" , "BreadcrumbsService" , "DataService" , "Navigate" , "ProjectsService" , "SecretsService" , "SOURCE_URL_PATTERN" , " keyValueEditorUtils", function ( a , b , c , d , e , f , g , h , i , j , k , l , m , n ) {
6946
+ } ] ) , angular . module ( "openshiftConsole" ) . controller ( "EditDeploymentConfigController" , [ "$scope" , "$filter" , "$location" , "$routeParams" , "$uibModal" , "AlertMessageService" , "AuthorizationService" , "BreadcrumbsService" , "DataService" , "Navigate" , "ProjectsService" , "SecretsService" , "keyValueEditorUtils" , function ( a , b , c , d , e , f , g , h , i , j , k , l , m ) {
6947
6947
a . projectName = d . project , a . deploymentConfig = null , a . alerts = { } , a . view = {
6948
6948
advancedStrategyOptions :! 1 ,
6949
6949
advancedImageOptions :! 1
@@ -6956,7 +6956,7 @@ includeProject:!0
6956
6956
} ) , a . deploymentConfigStrategyTypes = [ "Recreate" , "Rolling" , "Custom" ] , f . getAlerts ( ) . forEach ( function ( b ) {
6957
6957
a . alerts [ b . name ] = b . data ;
6958
6958
} ) , f . clearAlerts ( ) ;
6959
- var o = [ ] , p = function ( a ) {
6959
+ var n = [ ] , o = function ( a ) {
6960
6960
switch ( a ) {
6961
6961
case "Recreate" :
6962
6962
return "recreateParams" ;
@@ -7018,7 +7018,7 @@ a.updatedDeploymentConfig = angular.copy(a.deploymentConfig), a.containerNames =
7018
7018
pullSecrets :angular . copy ( a . deploymentConfig . spec . template . spec . imagePullSecrets ) || [ {
7019
7019
name :""
7020
7020
} ]
7021
- } , a . volumeNames = _ . map ( a . deploymentConfig . spec . template . spec . volumes , "name" ) , a . strategyData = angular . copy ( a . deploymentConfig . spec . strategy ) , a . originalStrategy = a . strategyData . type , a . strategyParamsPropertyName = p ( a . strategyData . type ) , a . triggers . hasConfigTrigger = _ . some ( a . updatedDeploymentConfig . spec . triggers , {
7021
+ } , a . volumeNames = _ . map ( a . deploymentConfig . spec . template . spec . volumes , "name" ) , a . strategyData = angular . copy ( a . deploymentConfig . spec . strategy ) , a . originalStrategy = a . strategyData . type , a . strategyParamsPropertyName = o ( a . strategyData . type ) , a . triggers . hasConfigTrigger = _ . some ( a . updatedDeploymentConfig . spec . triggers , {
7022
7022
type :"ConfigChange"
7023
7023
} ) , "Custom" !== a . strategyData . type || _ . has ( a . strategyData , "customParams.environment" ) || ( a . strategyData . customParams . environment = [ ] ) , i . list ( "secrets" , e , function ( b ) {
7024
7024
var c = l . groupSecretsByType ( b ) , d = _ . mapValues ( c , function ( a ) {
@@ -7027,7 +7027,7 @@ return _.map(a, "metadata.name");
7027
7027
a . secretsByType = _ . each ( d , function ( a ) {
7028
7028
a . unshift ( "" ) ;
7029
7029
} ) ;
7030
- } ) , o . push ( i . watchObject ( "deploymentconfigs" , d . deploymentconfig , e , function ( b , c ) {
7030
+ } ) , n . push ( i . watchObject ( "deploymentconfigs" , d . deploymentconfig , e , function ( b , c ) {
7031
7031
"MODIFIED" === c && ( a . alerts [ "updated/deleted" ] = {
7032
7032
type :"warning" ,
7033
7033
message :"This deployment configuration has changed since you started editing it. You'll need to copy any changes you've made and edit again."
@@ -7044,9 +7044,9 @@ details:b("getErrorDetails")(c)
7044
7044
} ;
7045
7045
} ) :void j . toErrorPage ( "You do not have authority to update deployment config " + d . deploymentconfig + "." , "access_denied" ) ;
7046
7046
} ) ) ;
7047
- var q = function ( ) {
7047
+ var p = function ( ) {
7048
7048
return "Custom" !== a . strategyData . type && "Custom" !== a . originalStrategy && a . strategyData . type !== a . originalStrategy ;
7049
- } , r = function ( b ) {
7049
+ } , q = function ( b ) {
7050
7050
if ( ! _ . has ( a . strategyData , b ) ) {
7051
7051
var c = e . open ( {
7052
7052
animation :! 0 ,
@@ -7066,21 +7066,21 @@ cancelButtonText:"No"
7066
7066
}
7067
7067
} ) ;
7068
7068
c . result . then ( function ( ) {
7069
- a . strategyData [ b ] = angular . copy ( a . strategyData [ p ( a . originalStrategy ) ] ) ;
7069
+ a . strategyData [ b ] = angular . copy ( a . strategyData [ o ( a . originalStrategy ) ] ) ;
7070
7070
} , function ( ) {
7071
7071
a . strategyData [ b ] = { } ;
7072
7072
} ) ;
7073
7073
}
7074
7074
} ;
7075
7075
a . strategyChanged = function ( ) {
7076
- var b = p ( a . strategyData . type ) ;
7077
- q ( ) ? r ( b ) :_ . has ( a . strategyData , b ) || ( "Custom" !== a . strategyData . type ? a . strategyData [ b ] = { } :a . strategyData [ b ] = {
7076
+ var b = o ( a . strategyData . type ) ;
7077
+ p ( ) ? q ( b ) :_ . has ( a . strategyData , b ) || ( "Custom" !== a . strategyData . type ? a . strategyData [ b ] = { } :a . strategyData [ b ] = {
7078
7078
image :"" ,
7079
7079
command :[ ] ,
7080
7080
environment :[ ]
7081
7081
} ) , a . strategyParamsPropertyName = b ;
7082
7082
} ;
7083
- var s = function ( a , b , c , d ) {
7083
+ var r = function ( a , b , c , d ) {
7084
7084
var e = {
7085
7085
kind :"ImageStreamTag" ,
7086
7086
namespace :b . namespace ,
@@ -7094,12 +7094,12 @@ containerNames:[ a ],
7094
7094
from :e
7095
7095
}
7096
7096
} , c ;
7097
- } , t = function ( ) {
7097
+ } , s = function ( ) {
7098
7098
var b = _ . reject ( a . updatedDeploymentConfig . spec . triggers , function ( a ) {
7099
7099
return "ImageChange" === a . type || "ConfigChange" === a . type ;
7100
7100
} ) ;
7101
7101
return _ . each ( a . containerConfigByName , function ( c , d ) {
7102
- if ( c . hasDeploymentTrigger ) b . push ( s ( d , c . triggerData . istag , c . triggerData . data , c . triggerData . automatic ) ) ; else {
7102
+ if ( c . hasDeploymentTrigger ) b . push ( r ( d , c . triggerData . istag , c . triggerData . data , c . triggerData . automatic ) ) ; else {
7103
7103
var e = _ . find ( a . updatedDeploymentConfig . spec . template . spec . containers , {
7104
7104
name :d
7105
7105
} ) ;
@@ -7114,10 +7114,10 @@ a.disableInputs = !0, _.each(a.containerConfigByName, function(b, c) {
7114
7114
var d = _ . find ( a . updatedDeploymentConfig . spec . template . spec . containers , {
7115
7115
name :c
7116
7116
} ) ;
7117
- d . env = n . compactEntries ( b . env ) ;
7118
- } ) , q ( ) && delete a . strategyData [ p ( a . originalStrategy ) ] , "Custom" !== a . strategyData . type ? _ . each ( [ "pre" , "mid" , "post" ] , function ( b ) {
7119
- _ . has ( a . strategyData , [ a . strategyParamsPropertyName , b , "execNewPod" , "env" ] ) && ( a . strategyData [ a . strategyParamsPropertyName ] [ b ] . execNewPod . env = n . compactEntries ( a . strategyData [ a . strategyParamsPropertyName ] [ b ] . execNewPod . env ) ) ;
7120
- } ) :_ . has ( a , "strategyData.customParams.environment" ) && ( a . strategyData . customParams . environment = n . compactEntries ( a . strategyData . customParams . environment ) ) , a . updatedDeploymentConfig . spec . template . spec . imagePullSecrets = _ . filter ( a . secrets . pullSecrets , "name" ) , a . updatedDeploymentConfig . spec . strategy = a . strategyData , a . updatedDeploymentConfig . spec . triggers = t ( ) , i . update ( "deploymentconfigs" , a . updatedDeploymentConfig . metadata . name , a . updatedDeploymentConfig , a . context ) . then ( function ( ) {
7117
+ d . env = m . compactEntries ( b . env ) ;
7118
+ } ) , p ( ) && delete a . strategyData [ o ( a . originalStrategy ) ] , "Custom" !== a . strategyData . type ? _ . each ( [ "pre" , "mid" , "post" ] , function ( b ) {
7119
+ _ . has ( a . strategyData , [ a . strategyParamsPropertyName , b , "execNewPod" , "env" ] ) && ( a . strategyData [ a . strategyParamsPropertyName ] [ b ] . execNewPod . env = m . compactEntries ( a . strategyData [ a . strategyParamsPropertyName ] [ b ] . execNewPod . env ) ) ;
7120
+ } ) :_ . has ( a , "strategyData.customParams.environment" ) && ( a . strategyData . customParams . environment = m . compactEntries ( a . strategyData . customParams . environment ) ) , a . updatedDeploymentConfig . spec . template . spec . imagePullSecrets = _ . filter ( a . secrets . pullSecrets , "name" ) , a . updatedDeploymentConfig . spec . strategy = a . strategyData , a . updatedDeploymentConfig . spec . triggers = s ( ) , i . update ( "deploymentconfigs" , a . updatedDeploymentConfig . metadata . name , a . updatedDeploymentConfig , a . context ) . then ( function ( ) {
7121
7121
f . addAlert ( {
7122
7122
name :a . updatedDeploymentConfig . metadata . name ,
7123
7123
data :{
@@ -7135,7 +7135,7 @@ details:b("getErrorDetails")(c)
7135
7135
} ;
7136
7136
} ) ;
7137
7137
} , a . $on ( "$destroy" , function ( ) {
7138
- i . unwatchAll ( o ) ;
7138
+ i . unwatchAll ( n ) ;
7139
7139
} ) ;
7140
7140
} ] ) , angular . module ( "openshiftConsole" ) . controller ( "EditAutoscalerController" , [ "$scope" , "$filter" , "$routeParams" , "$window" , "APIService" , "AuthorizationService" , "BreadcrumbsService" , "DataService" , "HPAService" , "MetricsService" , "Navigate" , "ProjectsService" , "keyValueEditorUtils" , function ( a , b , c , d , e , f , g , h , i , j , k , l , m ) {
7141
7141
if ( ! c . kind || ! c . name ) return void k . toErrorPage ( "Kind or name parameter missing." ) ;
0 commit comments