@@ -7622,7 +7622,30 @@ 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
+ "</span>\n" +
7645
+ "</div>\n" +
7646
+ "<div ng-if=\"!env.valueFrom\" class=\"truncate\" ng-attr-title=\"{{env.value}}\">\n" +
7647
+ "{{env.name}}={{env.value}}\n" +
7648
+ "</div>\n" +
7626
7649
"</div>\n" +
7627
7650
"</dd>\n" +
7628
7651
"<dt ng-if-start=\"strategyParams[type].execNewPod.volumes\">Volumes:</dt>\n" +
@@ -10127,17 +10150,17 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
10127
10150
"<div class=\"lifecycle-hooks\">\n" +
10128
10151
"<div class=\"lifecycle-hook\" id=\"pre-lifecycle-hook\">\n" +
10129
10152
"<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" +
10153
+ "<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
10154
"</edit-lifecycle-hook>\n" +
10132
10155
"</div>\n" +
10133
10156
"<div ng-if=\"strategyData.type !== 'Rolling'\" class=\"lifecycle-hook\" id=\"mid-lifecycle-hook\">\n" +
10134
10157
"<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" +
10158
+ "<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
10159
"</edit-lifecycle-hook>\n" +
10137
10160
"</div>\n" +
10138
10161
"<div class=\"lifecycle-hook\" id=\"post-lifecycle-hook\">\n" +
10139
10162
"<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" +
10163
+ "<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
10164
"</edit-lifecycle-hook>\n" +
10142
10165
"</div>\n" +
10143
10166
"</div>\n" +
0 commit comments