Skip to content

Commit 9b21516

Browse files
author
OpenShift Bot
authored
Merge pull request #860 from spadgett/secret-link
Merged by openshift-bot
2 parents b446eb8 + 5aa8002 commit 9b21516

File tree

2 files changed

+26
-12
lines changed

2 files changed

+26
-12
lines changed

app/views/_volumes.html

+14-7
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,24 @@ <h5>{{volume.name}}</h5>
1010
<dt>Type:</dt>
1111
<dd>
1212
secret
13-
<span class="small text-muted">(populated by a Secret when the pod is created)</span>
13+
<span class="small text-muted">(populated by a secret when the pod is created)</span>
14+
</dd>
15+
<dt>Secret:</dt>
16+
<dd>
17+
<span ng-if="'secrets' | canI : 'get'">
18+
<a ng-href="{{volume.secret.secretName | navigateResourceURL : 'Secret' : namespace}}">{{volume.secret.secretName}}</a>
19+
</span>
20+
<span ng-if="!('secrets' | canI : 'get')">
21+
{{volume.secret.secretName}}
22+
</span>
1423
</dd>
15-
<dt>Secret Name:</dt>
16-
<dd>{{volume.secret.secretName}}</dd>
1724
</div>
1825
<div ng-if="volume.persistentVolumeClaim">
1926
<dt>Type:</dt>
2027
<dd>
21-
persistent volume claim
22-
<span class="small text-muted">(reference to a Persistent Volume Claim)</span>
23-
</dd>
28+
persistent volume claim
29+
<span class="small text-muted">(reference to a persistent volume claim)</span>
30+
</dd>
2431
<dt>Claim name:</dt>
2532
<dd><a ng-href="{{volume.persistentVolumeClaim.claimName | navigateResourceURL : 'PersistentVolumeClaim' : namespace}}">{{volume.persistentVolumeClaim.claimName}}</a></dd>
2633
<dt>Mode:</dt>
@@ -76,7 +83,7 @@ <h5>{{volume.name}}</h5>
7683
<dt>Type:</dt>
7784
<dd>
7885
config map
79-
<span class="small text-muted">(populated by a Config Map)</span>
86+
<span class="small text-muted">(populated by a config map)</span>
8087
</dd>
8188
<dt>Name:</dt>
8289
<dd>{{volume.configMap.name}}</dd>

dist/scripts/templates.js

+12-5
Original file line numberDiff line numberDiff line change
@@ -766,16 +766,23 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
766766
"<dt>Type:</dt>\n" +
767767
"<dd>\n" +
768768
"secret\n" +
769-
"<span class=\"small text-muted\">(populated by a Secret when the pod is created)</span>\n" +
769+
"<span class=\"small text-muted\">(populated by a secret when the pod is created)</span>\n" +
770+
"</dd>\n" +
771+
"<dt>Secret:</dt>\n" +
772+
"<dd>\n" +
773+
"<span ng-if=\"'secrets' | canI : 'get'\">\n" +
774+
"<a ng-href=\"{{volume.secret.secretName | navigateResourceURL : 'Secret' : namespace}}\">{{volume.secret.secretName}}</a>\n" +
775+
"</span>\n" +
776+
"<span ng-if=\"!('secrets' | canI : 'get')\">\n" +
777+
"{{volume.secret.secretName}}\n" +
778+
"</span>\n" +
770779
"</dd>\n" +
771-
"<dt>Secret Name:</dt>\n" +
772-
"<dd>{{volume.secret.secretName}}</dd>\n" +
773780
"</div>\n" +
774781
"<div ng-if=\"volume.persistentVolumeClaim\">\n" +
775782
"<dt>Type:</dt>\n" +
776783
"<dd>\n" +
777784
"persistent volume claim\n" +
778-
"<span class=\"small text-muted\">(reference to a Persistent Volume Claim)</span>\n" +
785+
"<span class=\"small text-muted\">(reference to a persistent volume claim)</span>\n" +
779786
"</dd>\n" +
780787
"<dt>Claim name:</dt>\n" +
781788
"<dd><a ng-href=\"{{volume.persistentVolumeClaim.claimName | navigateResourceURL : 'PersistentVolumeClaim' : namespace}}\">{{volume.persistentVolumeClaim.claimName}}</a></dd>\n" +
@@ -832,7 +839,7 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
832839
"<dt>Type:</dt>\n" +
833840
"<dd>\n" +
834841
"config map\n" +
835-
"<span class=\"small text-muted\">(populated by a Config Map)</span>\n" +
842+
"<span class=\"small text-muted\">(populated by a config map)</span>\n" +
836843
"</dd>\n" +
837844
"<dt>Name:</dt>\n" +
838845
"<dd>{{volume.configMap.name}}</dd>\n" +

0 commit comments

Comments
 (0)