Bug 1978629

Summary: [RFE]'oc describe build|buildconfig' should show mount souce info when add Secret Volume Mounts to buildconfig
Product: OpenShift Container Platform Reporter: XiuJuan Wang <xiuwang>
Component: BuildAssignee: Corey Daley <cdaley>
Status: CLOSED ERRATA QA Contact: XiuJuan Wang <xiuwang>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.9CC: aos-bugs, cdaley
Target Milestone: ---   
Target Release: 4.9.0   
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: 2021-10-18 17:38:00 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:
Embargoed:

Description XiuJuan Wang 2021-07-02 11:05:35 UTC
Description of problem:
'oc describe build or buildconfig' should show mount source info when add Secret Volume Mounts 

Version-Release number of selected component (if applicable):
oc version 
Client Version: 4.9.0-0.nightly-2021-07-02-002856
Server Version: 4.9.0-0.nightly-2021-07-01-200539
Kubernetes Version: v1.21.0-rc.0+3ed65d9

How reproducible:
always

Steps to Reproduce:
1.Create a buildconfig, and add Secret Volume Mounts 
2.Describe buildconfig
3.

Actual results:
No Secret Volume Mounts shown.

$ oc describe bc test1
Name:		test1
Namespace:	xiuwang
Created:	26 minutes ago
Labels:		build=test1
Annotations:	openshift.io/generated-by=OpenShiftNewBuild
Latest Version:	3

Strategy:	Docker
Dockerfile:
  FROM centos:7
  RUN yum install -y httpd
  RUN ls -l /var/run/secret/
From Image:	ImageStreamTag xiuwang/centos:7
Output to:	ImageStreamTag test1:latest
Empty Source:	no input source provided

Build Run Policy:	Serial
Triggered by:		Config, ImageChange
Webhook GitHub:
	URL:	https://api.wxj-49.qe.devcluster.openshift.com:6443/apis/build.openshift.io/v1/namespaces/xiuwang/buildconfigs/test1/webhooks/<secret>/github
Webhook Generic:
	URL:		https://api.wxj-49.qe.devcluster.openshift.com:6443/apis/build.openshift.io/v1/namespaces/xiuwang/buildconfigs/test1/webhooks/<secret>/generic
	AllowEnv:	false
Builds History Limit:
	Successful:	5
	Failed:		5

Build		Status		Duration		Creation Time
test1-3 	pending 	waiting for 11m49s 	2021-07-02 18:51:52 +0800 CST
test1-1 	failed 		32s 			2021-07-02 18:37:28 +0800 CST


Expected results:
Should show Secret Volume Mounts info

Additional info:

Comment 2 XiuJuan Wang 2021-07-16 09:33:11 UTC
Verified before pr merged.

Comment 5 errata-xmlrpc 2021-10-18 17:38:00 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.9.0 bug fix and security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:3759