Bug 1398103

Summary: [userinterface_public_806]Should show specific keys and paths in volume info when add values from secrets as volume
Product: OKD Reporter: Yadan Pei <yapei>
Component: Management ConsoleAssignee: Samuel Padgett <spadgett>
Status: CLOSED CURRENTRELEASE QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.xCC: aos-bugs, mmccomas, xxia
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-05-30 12:50:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
VolumeInfo none

Description Yadan Pei 2016-11-24 07:07:27 UTC
Description of problem:
When we add values from secrets as a volume and define specific keys & paths, keys and paths are not shown in volume info

Version-Release number of selected component (if applicable):
v1.5.0-alpha.0+33a69c5-73

How reproducible:
Always

Steps to Reproduce:
1.Create secret
$ cat >> mysecret.yaml << EOF
apiVersion: v1
kind: Secret
metadata:
  name: mysecret
type: Opaque
data:
  password: MWYyZDFlMmU2N2Rm
  username: YWRtaW4=
EOF
$ oc create -f mysecret.yaml
2.Create app from image php:5.6 -> Set Name: php, fill Git Repository URL -> Create
3.Go to dc/php page, click on Add config files
4.Select "mysecret" from SECRET list as Source
Set "/data/secret" as Mount Path
Select "Select specific keys and paths"
Pick key "password", set Path: prop/secret.password
Click Add
5.Go to dc/php page, check volume info

Actual results:
5.Could see a new volume is added which type is set as "secret"
Type: secret (populated by a secret when the pod is created) 
Secret: mysecret 

Expected results:
5.Except for basic info about volume, should also list specific keys and paths we defined, should add this line in volume info
Key to File: password -> prop/secret.password


Additional info:
When we add values from config maps as volume and define specific keys and paths, keys and paths will be shown in volume info as following:

<volume-name> 
Type: config map
Config Map: special-config
Key to File: special.how → prop/configmap.how
Key to File: special.type→ prop/configmap.type

Comment 1 Yadan Pei 2016-11-24 07:08:41 UTC
Created attachment 1223525 [details]
VolumeInfo

Comment 2 Samuel Padgett 2016-11-28 13:08:32 UTC
It looks like the volume is added correctly, but we're not displaying the keys and paths when set.

Comment 4 Xingxing Xia 2016-11-29 06:12:19 UTC
Verified in oc v1.5.0-alpha.0+4557476-98, now DC page also lists specific keys and paths:
Key to File: password -> prop/secret.password

Thanks