Hide Forgot
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
Created attachment 1223525 [details] VolumeInfo
It looks like the volume is added correctly, but we're not displaying the keys and paths when set.
https://github.com/openshift/origin-web-console/pull/927
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