Bug 1398103 - [userinterface_public_806]Should show specific keys and paths in volume info when add values from secrets as volume
Summary: [userinterface_public_806]Should show specific keys and paths in volume info ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Management Console
Version: 3.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Samuel Padgett
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-24 07:07 UTC by Yadan Pei
Modified: 2017-05-30 12:50 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-05-30 12:50:02 UTC
Target Upstream Version:


Attachments (Terms of Use)
VolumeInfo (24.83 KB, image/png)
2016-11-24 07:08 UTC, Yadan Pei
no flags Details

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


Note You need to log in before you can comment on or make changes to this bug.