@@ -7622,7 +7622,31 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
7622
7622
"<dt ng-if-start=\"strategyParams[type].execNewPod.env\">Environment Variables:</dt>\n" +
7623
7623
"<dd ng-if-end>\n" +
7624
7624
"<div ng-repeat=\"env in strategyParams[type].execNewPod.env\">\n" +
7625
- "<div class=\"truncate\" ng-attr-title=\"{{env.value}}\">{{env.name}}={{env.value}}</div>\n" +
7625
+ "<div ng-if=\"env.valueFrom.configMapKeyRef || env.valueFrom.secretKeyRef\">\n" +
7626
+ "{{env.name}} set to key\n" +
7627
+ "<span ng-if=\"env.valueFrom.configMapKeyRef\">\n" +
7628
+ "{{env.valueFrom.configMapKeyRef.key}} in config map\n" +
7629
+ "<span ng-if=\"!('configmaps' | canI : 'get')\">\n" +
7630
+ "{{env.valueFrom.configMapKeyRef.name}}\n" +
7631
+ "</span>\n" +
7632
+ "<a ng-if=\"'configmaps' | canI : 'get'\" ng-href=\"{{env.valueFrom.configMapKeyRef.name | navigateResourceURL : 'ConfigMap' : deploymentConfig.metadata.namespace}}\">\n" +
7633
+ "{{env.valueFrom.configMapKeyRef.name}}\n" +
7634
+ "</a>\n" +
7635
+ "</span>\n" +
7636
+ "<span ng-if=\"env.valueFrom.secretKeyRef\">\n" +
7637
+ "{{env.valueFrom.secretKeyRef.key}} in secret\n" +
7638
+ "<span ng-if=\"!('secrets' | canI : 'get')\">\n" +
7639
+ "{{env.valueFrom.secretKeyRef.name}}\n" +
7640
+ "</span>\n" +
7641
+ "<a ng-if=\"'secrets' | canI : 'get'\" ng-href=\"{{env.valueFrom.secretKeyRef.name | navigateResourceURL : 'Secret' : deploymentConfig.metadata.namespace}}\">\n" +
7642
+ "{{env.valueFrom.secretKeyRef.name}}\n" +
7643
+ "</a>\n" +
7644
+ "<a ng-href=\"{{volume.secret.secretName | navigateResourceURL : 'Secret' : namespace}}\">{{volume.secret.secretName}}</a>\n" +
7645
+ "</span>\n" +
7646
+ "</div>\n" +
7647
+ "<div ng-if=\"!env.valueFrom\" class=\"truncate\" ng-attr-title=\"{{env.value}}\">\n" +
7648
+ "{{env.name}}={{env.value}}\n" +
7649
+ "</div>\n" +
7626
7650
"</div>\n" +
7627
7651
"</dd>\n" +
7628
7652
"<dt ng-if-start=\"strategyParams[type].execNewPod.volumes\">Volumes:</dt>\n" +
@@ -10127,17 +10151,17 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
10127
10151
"<div class=\"lifecycle-hooks\">\n" +
10128
10152
"<div class=\"lifecycle-hook\" id=\"pre-lifecycle-hook\">\n" +
10129
10153
"<h3>Pre Lifecycle Hook</h3>\n" +
10130
- "<edit-lifecycle-hook model=\"strategyData[strategyParamsPropertyName].pre\" type=\"pre\" available-volumes=\"volumeNames\" available-containers=\"containerNames\" available-secrets=\"availableSecrets\" available-configmaps =\"availableConfigMaps\" namespace=\"projectName\">\n" +
10154
+ "<edit-lifecycle-hook model=\"strategyData[strategyParamsPropertyName].pre\" type=\"pre\" available-volumes=\"volumeNames\" available-containers=\"containerNames\" available-secrets=\"availableSecrets\" available-config-maps =\"availableConfigMaps\" namespace=\"projectName\">\n" +
10131
10155
"</edit-lifecycle-hook>\n" +
10132
10156
"</div>\n" +
10133
10157
"<div ng-if=\"strategyData.type !== 'Rolling'\" class=\"lifecycle-hook\" id=\"mid-lifecycle-hook\">\n" +
10134
10158
"<h3>Mid Lifecycle Hook</h3>\n" +
10135
- "<edit-lifecycle-hook model=\"strategyData[strategyParamsPropertyName].mid\" type=\"mid\" available-volumes=\"volumeNames\" available-containers=\"containerNames\" available-secrets=\"availableSecrets\" available-configmaps =\"availableConfigMaps\" namespace=\"projectName\">\n" +
10159
+ "<edit-lifecycle-hook model=\"strategyData[strategyParamsPropertyName].mid\" type=\"mid\" available-volumes=\"volumeNames\" available-containers=\"containerNames\" available-secrets=\"availableSecrets\" available-config-maps =\"availableConfigMaps\" namespace=\"projectName\">\n" +
10136
10160
"</edit-lifecycle-hook>\n" +
10137
10161
"</div>\n" +
10138
10162
"<div class=\"lifecycle-hook\" id=\"post-lifecycle-hook\">\n" +
10139
10163
"<h3>Post Lifecycle Hook</h3>\n" +
10140
- "<edit-lifecycle-hook model=\"strategyData[strategyParamsPropertyName].post\" type=\"post\" available-volumes=\"volumeNames\" available-containers=\"containerNames\" available-secrets=\"availableSecrets\" available-configmaps =\"availableConfigMaps\" namespace=\"projectName\">\n" +
10164
+ "<edit-lifecycle-hook model=\"strategyData[strategyParamsPropertyName].post\" type=\"post\" available-volumes=\"volumeNames\" available-containers=\"containerNames\" available-secrets=\"availableSecrets\" available-config-maps =\"availableConfigMaps\" namespace=\"projectName\">\n" +
10141
10165
"</edit-lifecycle-hook>\n" +
10142
10166
"</div>\n" +
10143
10167
"</div>\n" +
0 commit comments